perf: 删除无用代码逻辑

This commit is contained in:
renxiaodong
2025-06-23 04:14:42 -04:00
parent 9d7f06ad0b
commit 7b79443980
5 changed files with 34 additions and 79 deletions

View File

@ -1,3 +1,7 @@
/*
* @Author: RenXiaoDong
* @Date: 2025-06-23 03:56:22
*/
import { defineStore } from 'pinia';
import type { AppState, RouteRecordNormalized, NotificationReturn } from './types';
@ -43,56 +47,6 @@ export const useAppStore = defineStore('app', {
this.hideMenu = value;
},
async fetchServerMenuConfig() {
this.serverMenu = [
{
path: '/enterprise',
name: 'enterprise',
meta: {
locale: '企业票夹',
requiresAuth: true,
roles: ['*'],
},
children: [
{
path: 'input',
name: 'input',
meta: {
icon: IconImport,
locale: '进项管理',
requiresAuth: true,
roles: ['*'],
},
},
{
path: 'output',
name: 'output',
meta: {
locale: '销项管理',
requiresAuth: true,
roles: ['*'],
},
},
{
path: 'red-invoice',
name: 'red-invoice',
meta: {
locale: '全电红字确认单管理',
requiresAuth: true,
roles: ['*'],
},
},
{
path: 'information',
name: 'information',
meta: {
locale: '企业信息',
requiresAuth: true,
roles: ['*'],
},
},
],
},
];
this.menuFromServer = true;
},
clearServerMenu() {