update 优化代码 统一store用法

This commit is contained in:
疯狂的狮子Li
2025-03-12 12:08:23 +08:00
parent 98728828ad
commit 7feead9afc
36 changed files with 59 additions and 60 deletions

View File

@ -1,4 +1,4 @@
import useUserStore from '@/store/modules/user';
import { useUserStore } from '@/store/modules/user';
/**
* 字符权限校验

View File

@ -1,6 +1,6 @@
import { getToken } from '@/utils/auth';
import { ElNotification } from 'element-plus';
import useNoticeStore from '@/store/modules/notice';
import { useNoticeStore } from '@/store/modules/notice';
// 初始化
export const initSSE = (url: any) => {

View File

@ -1,6 +1,6 @@
import { getToken } from '@/utils/auth';
import { ElNotification } from 'element-plus';
import useNoticeStore from '@/store/modules/notice';
import { useNoticeStore } from '@/store/modules/notice';
// 初始化socket
export const initWebSocket = (url: any) => {