perf: 调整
This commit is contained in:
@ -39,6 +39,7 @@ export const useChatStore = defineStore('chat', {
|
||||
clearAgentInfo() {
|
||||
this.agentInfo = {};
|
||||
this.searchValue = '';
|
||||
rlsWithCatch('agentInfo');
|
||||
},
|
||||
async onCreateSession() {
|
||||
const { code, data } = await createSession();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { fetchEnterpriseInfo } from '@/api/all/login';
|
||||
import { glsWithCatch, slsWithCatch } from '@/utils/stroage';
|
||||
import { glsWithCatch, slsWithCatch, rlsWithCatch } from '@/utils/stroage';
|
||||
|
||||
interface EnterpriseInfo {
|
||||
id: number | string;
|
||||
@ -34,7 +34,7 @@ export const useEnterpriseStore = defineStore('enterprise', {
|
||||
},
|
||||
clearUserEnterpriseInfo() {
|
||||
this.enterpriseInfo = null;
|
||||
localStorage.removeItem('enterpriseInfo');
|
||||
rlsWithCatch('enterpriseInfo');
|
||||
},
|
||||
setEnterpriseName(name: string) {
|
||||
if (this.enterpriseInfo) {
|
||||
|
||||
Reference in New Issue
Block a user