Merge remote-tracking branch 'origin/feature/0915_素材中心新增手动上传' into test
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) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { fetchProfileInfo } from '@/api/all/login';
|
||||
import { fetchUserInfo } from '@/api/all/login';
|
||||
// import { useSidebarStore } from '@/stores/modules/side-bar';
|
||||
import { glsWithCatch, rlsWithCatch, slsWithCatch } from '@/utils/stroage';
|
||||
import { useEnterpriseStore } from '@/stores/modules/enterprise';
|
||||
@ -72,7 +72,7 @@ export const useUserStore = defineStore('user', {
|
||||
async getUserInfo() {
|
||||
const enterpriseStore = useEnterpriseStore();
|
||||
|
||||
const { code, data } = await fetchProfileInfo();
|
||||
const { code, data } = await fetchUserInfo();
|
||||
if (code === 200) {
|
||||
this.setUserInfo(data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user