perf: 调整

This commit is contained in:
rd
2025-09-18 18:05:17 +08:00
parent c02631f4ee
commit 55b4ed1e83
3 changed files with 8 additions and 6 deletions

View File

@ -39,6 +39,7 @@ export const useChatStore = defineStore('chat', {
clearAgentInfo() {
this.agentInfo = {};
this.searchValue = '';
rlsWithCatch('agentInfo');
},
async onCreateSession() {
const { code, data } = await createSession();

View File

@ -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) {