Skip to content

Commit edea963

Browse files
committed
fix: Button permission while creating model
1 parent 1703923 commit edea963

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/src/views/model/component/CreateModelDialog.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,10 @@ import { input_type_list } from '@/components/dynamics-form/constructor/data'
249249
import AddParamDrawer from '@/views/model/component/AddParamDrawer.vue'
250250
import { t } from '@/locales'
251251
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
252+
import useStore from '@/stores'
252253
253254
const route = useRoute()
255+
const { user } = useStore()
254256
255257
const apiType = computed(() => {
256258
if (route.path.includes('shared')) {
@@ -403,6 +405,7 @@ const submit = () => {
403405
close()
404406
MsgSuccess(t('views.model.tip.createSuccessMessage'))
405407
emit('submit')
408+
return user.profile()
406409
})
407410
}
408411
})

0 commit comments

Comments
 (0)