fix: Button permission while creating model

This commit is contained in:
zhangzhanwei 2025-07-09 18:49:05 +08:00 committed by zhanweizhang7
parent 1703923f58
commit 19b7ae24c9

View File

@ -249,8 +249,10 @@ import { input_type_list } from '@/components/dynamics-form/constructor/data'
import AddParamDrawer from '@/views/model/component/AddParamDrawer.vue'
import { t } from '@/locales'
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
import useStore from '@/stores'
const route = useRoute()
const { user } = useStore()
const apiType = computed(() => {
if (route.path.includes('shared')) {
@ -403,6 +405,7 @@ const submit = () => {
close()
MsgSuccess(t('views.model.tip.createSuccessMessage'))
emit('submit')
return user.profile()
})
}
})