diff --git a/src/api/base/role.ts b/src/api/base/role.ts new file mode 100644 index 0000000..dc49961 --- /dev/null +++ b/src/api/base/role.ts @@ -0,0 +1,14 @@ +import { defHttp } from '@/utils/axios/index' + +// 角色 +export async function getRole(type: number) { + return defHttp.get({ + url: `/open-chat/roleInfo/list?type=${type}`, + }) +} +// 应用 +export function getAppList() { + return defHttp.get({ + url: `/open-chat/roleInfo/app/group/list`, + }) +} diff --git a/src/api/base/user.ts b/src/api/base/user.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/components/AppRoleDefault/index.d.ts b/src/components/AppRoleDefault/index.d.ts new file mode 100644 index 0000000..a2f03c2 --- /dev/null +++ b/src/components/AppRoleDefault/index.d.ts @@ -0,0 +1,20 @@ +export interface RoleData { + roleImg: string + roleName: string + roleInfo: string + remark: string +} + +interface RoleInfoAppModel { + id: number + roleName: string + roleType: string + roleInfo: string + roleImg: string + type: number +} + +export interface AppGroup { + groupName: string + roleInfoAppModelList: RoleInfoAppModel[] +} diff --git a/src/components/AppRoleDefault/index.ts b/src/components/AppRoleDefault/index.ts new file mode 100644 index 0000000..6184f60 --- /dev/null +++ b/src/components/AppRoleDefault/index.ts @@ -0,0 +1,3 @@ +import AppRoleDefault from './index.vue' + +export { AppRoleDefault } diff --git a/src/components/AppRoleDefault/index.vue b/src/components/AppRoleDefault/index.vue new file mode 100644 index 0000000..5cb4dfb --- /dev/null +++ b/src/components/AppRoleDefault/index.vue @@ -0,0 +1,293 @@ + + + + + + diff --git a/src/layout/AppMenu/index.vue b/src/layout/AppMenu/index.vue index 583babc..00223ef 100644 --- a/src/layout/AppMenu/index.vue +++ b/src/layout/AppMenu/index.vue @@ -23,7 +23,7 @@ const menu = ref([ { name: '角色', icon: 'jue_se', - path: '', + path: '/role', key: MenuTypeEnum.ROLE, }, { diff --git a/src/router/index.ts b/src/router/index.ts index 30277ca..2e77db7 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -47,6 +47,14 @@ export const constantRoutes: Array = [ title: '文生图', }, }, + { + name: 'Role', + path: '/Role', + component: () => import('@/views/role/index.vue'), + meta: { + title: '角色', + }, + }, ], }, diff --git a/src/utils/axios/index.ts b/src/utils/axios/index.ts index 4e7f04b..68bcc67 100644 --- a/src/utils/axios/index.ts +++ b/src/utils/axios/index.ts @@ -258,7 +258,8 @@ function createAxios(opt?: Partial) { { // See https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#authentication_schemes // authentication schemes,e.g: Bearer - tokenScheme: 'crypto', + // crypto + tokenScheme: '', authenticationScheme: 'Basic', timeout: 10 * 1000, // 基础接口地址 diff --git a/src/views/login/index.vue b/src/views/login/index.vue index a6fad9d..8290183 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -122,10 +122,10 @@ function timer() { 欢迎使用
- 青鸟AI助手-同聪 + 青鸟语言大模型-同聪
- Bluebird AI Assistant - Tong Cong + THE BIG LANGUAGE MODEL BLUEBIRO - Tong Cong
@@ -139,7 +139,7 @@ function timer() { :wrapper-col="{ span: 22 }" autocomplete="off" > -