perf: Setting menu permission

This commit is contained in:
fit2cloud-chenyw
2025-07-18 12:45:46 +08:00
parent e257c3be61
commit 2eef41131d
5 changed files with 45 additions and 13 deletions
+7 -3
View File
@@ -1,6 +1,11 @@
<script lang="ts" setup>
import { ref, computed, onMounted, reactive } from 'vue'
import { uwsOption, workspaceUserList, workspaceUwsDelete, workspaceCreate } from '@/api/workspace'
import {
uwsOption,
workspaceUserList,
workspaceUwsDelete,
workspaceUwsCreate,
} from '@/api/workspace'
import icon_add_outlined from '@/assets/svg/icon_add_outlined.svg'
import icon_searchOutline_outlined from '@/assets/svg/icon_search-outline_outlined.svg'
import EmptyBackground from '@/views/dashboard/common/EmptyBackground.vue'
@@ -142,9 +147,8 @@ const closeField = () => {
}
const saveField = () => {
workspaceCreate({
workspaceUwsCreate({
uid_list: [userInfo.value.id],
weight: 0,
}).then(() => {
ElMessage({
type: 'success',