File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ const workspace = {
1010 [ EditionConst . IS_EE ] , 'OR' ) ,
1111 'OR' ,
1212 ) ,
13- addModel : ( source_id : string ) =>
13+ addModel : ( ) =>
1414 hasPermission (
1515 [
1616 RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ,
1717 RoleConst . USER . getWorkspaceRole ,
18- PermissionConst . MODEL_CREATE . getModelWorkspaceResourcePermission ( source_id ) ,
18+ PermissionConst . MODEL_CREATE . getWorkspacePermission ,
1919 PermissionConst . MODEL_CREATE . getWorkspacePermissionWorkspaceManageRole
2020 ] ,
2121 'OR'
Original file line number Diff line number Diff line change 7474 <template #dropdown >
7575 <el-dropdown-menu >
7676 <el-dropdown-item
77- v-if =" permissionPrecise.modify(id)"
77+ v-if =" permissionPrecise.modify(model. id)"
7878 icon =" EditPen"
7979 text
8080 @click.stop =" openEditModel"
9090
9191 <el-dropdown-item
9292 v-if ="
93- currentModel.model_type === 'TTS' ||
93+ ( currentModel.model_type === 'TTS' ||
9494 currentModel.model_type === 'LLM' ||
9595 currentModel.model_type === 'IMAGE' ||
96- currentModel.model_type === 'TTI' ||
97- permissionPrecise.paramSetting(id)
96+ currentModel.model_type === 'TTI') &&
97+ permissionPrecise.paramSetting(model. id)
9898 "
9999 icon =" Setting"
100100 @click.stop =" openParamSetting"
106106 icon =" Delete"
107107 text
108108 @click.stop =" deleteModel"
109- v-if =" permissionPrecise.delete(id)"
109+ v-if =" permissionPrecise.delete(model. id)"
110110 >
111111 {{ $t('common.delete') }}
112112 </el-dropdown-item >
@@ -137,9 +137,6 @@ import { useRoute } from 'vue-router'
137137import { loadSharedApi } from ' @/utils/dynamics-api/shared-api'
138138
139139const route = useRoute ()
140- const {
141- params : { id, folderId }, // id is ModelID
142- } = route as any
143140
144141const props = defineProps <{
145142 model: Model
You can’t perform that action at this time.
0 commit comments