perf: 删除无用代码逻辑
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user