Sfoglia il codice sorgente

vue3:修改 detail 的权限校验

YunaiV 2 anni fa
parent
commit
b98a61f88f

+ 1 - 1
yudao-ui-admin-vue3/src/views/system/errorCode/index.vue

@@ -24,7 +24,7 @@
         <XTextButton
           preIcon="ep:view"
           :title="t('action.detail')"
-          v-hasPermi="['system:error-code:update']"
+          v-hasPermi="['system:error-code:query']"
           @click="handleDetail(row.id)"
         />
         <!-- 操作:删除 -->

+ 1 - 1
yudao-ui-admin-vue3/src/views/system/notice/index.vue

@@ -24,7 +24,7 @@
         <XTextButton
           preIcon="ep:view"
           :title="t('action.detail')"
-          v-hasPermi="['system:notice:update']"
+          v-hasPermi="['system:notice:query']"
           @click="handleDetail(row.id)"
         />
         <!-- 操作:删除 -->

+ 1 - 1
yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue

@@ -34,7 +34,7 @@
         <XTextButton
           preIcon="ep:view"
           :title="t('action.detail')"
-          v-hasPermi="['system:oauth2-client:update']"
+          v-hasPermi="['system:oauth2-client:query']"
           @click="handleDetail(row.id)"
         />
         <!-- 操作:删除 -->

+ 1 - 1
yudao-ui-admin-vue3/src/views/system/post/index.vue

@@ -32,7 +32,7 @@
         <XTextButton
           preIcon="ep:view"
           :title="t('action.detail')"
-          v-hasPermi="['system:post:update']"
+          v-hasPermi="['system:post:query']"
           @click="handleDetail(row.id)"
         />
         <!-- 操作:删除 -->

+ 1 - 1
yudao-ui-admin-vue3/src/views/system/role/index.vue

@@ -22,7 +22,7 @@
         <XTextButton
           preIcon="ep:view"
           :title="t('action.detail')"
-          v-hasPermi="['system:role:update']"
+          v-hasPermi="['system:role:query']"
           @click="handleDetail(row.id)"
         />
         <XTextButton

+ 1 - 1
yudao-ui-admin-vue3/src/views/system/sms/smsChannel/index.vue

@@ -24,7 +24,7 @@
         <XTextButton
           preIcon="ep:view"
           :title="t('action.detail')"
-          v-hasPermi="['system:sms-channel:update']"
+          v-hasPermi="['system:sms-channel:query']"
           @click="handleDetail(row.id)"
         />
         <!-- 操作:删除 -->

+ 1 - 1
yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue

@@ -30,7 +30,7 @@
         <XTextButton
           preIcon="ep:view"
           :title="t('action.detail')"
-          v-hasPermi="['system:sms-template:update']"
+          v-hasPermi="['system:sms-template:query']"
           @click="handleDetail(row.id)"
         />
         <!-- 操作:删除 -->