refactor: Vite2的别名方式修改后对应引用路径调整
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {AppState} from "@store/interface";
|
||||
import {Local} from "@utils/storage";
|
||||
import {AppState} from "@/store/interface";
|
||||
import {Local} from "@/utils/storage";
|
||||
import { store } from "@/store";
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {PermissionState} from "@store/interface";
|
||||
import {PermissionState} from "@/store/interface";
|
||||
import {RouteRecordRaw} from 'vue-router'
|
||||
import {constantRoutes} from '@/router'
|
||||
import {listRoutes} from "@/api/system/menu";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { defineStore } from "pinia";
|
||||
import { store } from "@/store";
|
||||
import {SettingState} from "@store/interface";
|
||||
import {SettingState} from "@/store/interface";
|
||||
import defaultSettings from '../../settings'
|
||||
|
||||
const {showSettings, tagsView, fixedHeader, sidebarLogo} = defaultSettings
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {defineStore} from "pinia";
|
||||
import {store} from "@/store";
|
||||
import {TagsViewState} from "@store/interface";
|
||||
import {TagsViewState} from "@/store/interface";
|
||||
|
||||
const tagsViewStore = defineStore({
|
||||
id: "tagsView",
|
||||
@@ -112,7 +112,7 @@ const tagsViewStore = defineStore({
|
||||
return true
|
||||
}
|
||||
|
||||
const cacheIndex = this.cachedViews.indexOf(item.name)
|
||||
const cacheIndex = this.cachedViews.indexOf(item.name as string)
|
||||
if (cacheIndex > -1) {
|
||||
this.cachedViews.splice(cacheIndex, 1)
|
||||
}
|
||||
@@ -135,7 +135,7 @@ const tagsViewStore = defineStore({
|
||||
return true
|
||||
}
|
||||
|
||||
const cacheIndex = this.cachedViews.indexOf(item.name)
|
||||
const cacheIndex = this.cachedViews.indexOf(item.name as string)
|
||||
if (cacheIndex > -1) {
|
||||
this.cachedViews.splice(cacheIndex, 1)
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { defineStore } from "pinia";
|
||||
import { store } from "@/store";
|
||||
import {UserState} from "@store/interface";
|
||||
import {Local} from "@utils/storage";
|
||||
import {getUserInfo, login, logout} from "@api/login";
|
||||
import {resetRouter} from "@router";
|
||||
import {UserState} from "@/store/interface";
|
||||
import {Local} from "@/utils/storage";
|
||||
import {getUserInfo, login, logout} from "@/api/login";
|
||||
import {resetRouter} from "@/router";
|
||||
|
||||
const getDefaultState = () => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user