来到同聪
@@ -101,6 +108,7 @@ console.log(userStore.getChatInfo)
font-weight: 400;
color: #ffffff;
line-height: 20px;
+ cursor: pointer;
}
}
&-bottom {
diff --git a/src/layout/index.vue b/src/layout/index.vue
index dba5755..51725d9 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -1,12 +1,14 @@
diff --git a/src/store/moules/rechareStore/index.ts b/src/store/moules/rechareStore/index.ts
new file mode 100644
index 0000000..0c6dc5f
--- /dev/null
+++ b/src/store/moules/rechareStore/index.ts
@@ -0,0 +1,23 @@
+import { defineStore } from 'pinia'
+
+export const useRechargeStore = defineStore('useRechargeStore', {
+ state: () => {
+ return {
+ show: false,
+ }
+ },
+ getters: {
+ getStatus(): boolean {
+ return this.show
+ },
+ },
+ actions: {
+ rechargeOpen() {
+ this.show = true
+ },
+ rechargeClose() {
+ this.show = false
+ },
+ },
+
+})
diff --git a/src/store/moules/userStore/index.d.ts b/src/store/moules/userStore/index.d.ts
index ad58d7f..c55dae8 100644
--- a/src/store/moules/userStore/index.d.ts
+++ b/src/store/moules/userStore/index.d.ts
@@ -19,4 +19,7 @@ export interface UserInfoType {
export interface ChatInfoType {
id: string
chatCode: string
+ questionCount: number
+ messageCount: number
+ createdDay: number
}
diff --git a/src/utils/axios/index.ts b/src/utils/axios/index.ts
index 68bcc67..0dbe768 100644
--- a/src/utils/axios/index.ts
+++ b/src/utils/axios/index.ts
@@ -258,8 +258,8 @@ function createAxios(opt?: Partial
) {
{
// See https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#authentication_schemes
// authentication schemes,e.g: Bearer
- // crypto
- tokenScheme: '',
+
+ tokenScheme: 'crypto',
authenticationScheme: 'Basic',
timeout: 10 * 1000,
// 基础接口地址
diff --git a/src/views/conversation/index.vue b/src/views/conversation/index.vue
index 019ce22..022ed7e 100644
--- a/src/views/conversation/index.vue
+++ b/src/views/conversation/index.vue
@@ -6,6 +6,7 @@ import { AppContainerBox } from '@/components/AppContainerBox'
import { AppSubMenuTitle } from '@/components/AppSubMenuTitle'
import { AppSubMenuList } from '@/components/AppSubMenuList'
import { AppConversationDefault } from '@/components/AppConversationDefault'
+import { AppUserInfo } from '@/components/AppUserInfo'
import { SubMenuActionEnum } from '@/components/AppSubMenuList/index.d'
import type { SubMenuItem } from '@/components/AppSubMenuList/index.d'
@@ -272,6 +273,7 @@ onBeforeRouteLeave(() => {
@input-blur="handleSubMenuInputBlur"
>
+
diff --git a/src/views/role/index.vue b/src/views/role/index.vue
index b19692c..af46799 100644
--- a/src/views/role/index.vue
+++ b/src/views/role/index.vue
@@ -6,6 +6,7 @@ import { AppSubMenuTitle } from '@/components/AppSubMenuTitle'
import { AppSubMenuList } from '@/components/AppSubMenuList'
import { AppRoleDefault } from '@/components/AppRoleDefault'
import type { SubMenuItem } from '@/components/AppSubMenuList/index.d'
+import { AppUserInfo } from '@/components/AppUserInfo'
const subMenuActive = ref(0)
const subMenuList = ref([
@@ -36,6 +37,7 @@ function handleSubMenuChange(index: number) {