refactor: Integrate the @vben-core/shared package

This commit is contained in:
vben
2024-07-30 21:05:03 +08:00
parent e6403868fc
commit cf0ec053e4
223 changed files with 330 additions and 328 deletions

View File

@@ -20,7 +20,7 @@
}
},
"dependencies": {
"@vben-core/toolkit": "workspace:*",
"@vben-core/shared": "workspace:*",
"@vben-core/typings": "workspace:*",
"pinia": "2.1.7",
"pinia-plugin-persistedstate": "^3.2.1",

View File

@@ -3,7 +3,7 @@ import type { Router, RouteRecordNormalized } from 'vue-router';
import { toRaw } from 'vue';
import { openWindow, startProgress, stopProgress } from '@vben-core/toolkit';
import { openWindow, startProgress, stopProgress } from '@vben-core/shared';
import { acceptHMRUpdate, defineStore } from 'pinia';
@@ -254,7 +254,6 @@ export const useCoreTabbarStore = defineStore('core-tabbar', {
/**
* 根据路径获取标签页
* @param path
* @returns
*/
getTabByPath(path: string) {
return this.getTabs.find(