refactor: 适配及启用 Arco Design Pro Vue 动态路由

Resolves #1
This commit is contained in:
2023-08-30 21:19:13 +08:00
parent 42e8132812
commit 9baf341013
27 changed files with 114 additions and 123 deletions

View File

@@ -49,21 +49,21 @@ const useAppStore = defineStore('app', {
try {
notifyInstance = Notification.info({
id: 'menuNotice', // Keep the instance id the same
content: 'loading',
content: '菜单加载中...',
closable: true,
});
const { data } = await listRoute();
this.serverMenu = data;
notifyInstance = Notification.success({
id: 'menuNotice',
content: 'success',
content: '菜单加载成功',
closable: true,
});
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
notifyInstance = Notification.error({
id: 'menuNotice',
content: 'error',
content: '菜单加载失败',
closable: true,
});
}