1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-12-28 20:10:22 +08:00

refactor: folders

This commit is contained in:
张传龙
2022-09-18 20:05:40 +08:00
parent bdbe9b8483
commit 6664ae8f7b
45 changed files with 138 additions and 139 deletions

View File

@@ -0,0 +1,4 @@
export * from './app'
export * from './permission'
export * from './tags'
export * from './user'

View File

@@ -1,4 +1,4 @@
import { sStorage } from '@/utils/cache'
import { sStorage } from '@/utils'
export const activeTag = sStorage.get('activeTag')
export const tags = sStorage.get('tags')

View File

@@ -1,7 +1,7 @@
import { defineStore } from 'pinia'
import { activeTag, tags, WITHOUT_TAG_PATHS } from './helpers'
import { router } from '@/router'
import { sStorage } from '@/utils/cache'
import { sStorage } from '@/utils'
export const useTagsStore = defineStore('tag', {
state() {

View File

@@ -1,6 +1,5 @@
import { defineStore } from 'pinia'
import { removeToken } from '@/utils/token'
import { toLogin } from '@/utils/auth'
import { removeToken, toLogin } from '@/utils'
import api from '@/api'
export const useUserStore = defineStore('user', {