Commit 1d0f31cc authored by shirlyn.guo's avatar shirlyn.guo 👌🏻

Merge branch 'master' of https://gitlab.gsstcloud.com/poc/poc-fe into shirlyn

parents 0e22563a a201868b
<?xml version="1.0" encoding="UTF-8"?>
<svg width="243px" height="50px" viewBox="0 0 243 50" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>logo</title>
<defs>
<linearGradient x1="56.7217735%" y1="112.991457%" x2="41.197196%" y2="-10.6481058%" id="linearGradient-1">
<stop stop-color="#00FFCC" offset="0%"></stop>
<stop stop-color="#00F8CC" offset="7.67773506%"></stop>
<stop stop-color="#01E5CB" offset="22%"></stop>
<stop stop-color="#03C5C9" offset="37%"></stop>
<stop stop-color="#0699C7" offset="54%"></stop>
<stop stop-color="#0960C4" offset="73%"></stop>
<stop stop-color="#0C1DC0" offset="92%"></stop>
<stop stop-color="#0E00BF" offset="100%"></stop>
</linearGradient>
<linearGradient x1="72.9721306%" y1="-178.631592%" x2="54.5408072%" y2="192.830724%" id="linearGradient-2">
<stop stop-color="#0E00BF" offset="0%"></stop>
<stop stop-color="#0C1DC0" offset="8%"></stop>
<stop stop-color="#0960C4" offset="27%"></stop>
<stop stop-color="#0699C7" offset="46%"></stop>
<stop stop-color="#03C5C9" offset="63%"></stop>
<stop stop-color="#01E5CB" offset="78%"></stop>
<stop stop-color="#00F8CC" offset="92.3222649%"></stop>
<stop stop-color="#00FFCC" offset="100%"></stop>
</linearGradient>
<linearGradient x1="24.8129724%" y1="10.6775741%" x2="53.6705404%" y2="81.5960815%" id="linearGradient-3">
<stop stop-color="#5BFFC5" offset="0%"></stop>
<stop stop-color="#01E5CB" offset="22%"></stop>
<stop stop-color="#03C5C9" offset="40.4347171%"></stop>
<stop stop-color="#0699C7" offset="54%"></stop>
<stop stop-color="#0960C4" offset="73%"></stop>
<stop stop-color="#0C1DC0" offset="92%"></stop>
<stop stop-color="#0E00BF" offset="100%"></stop>
</linearGradient>
<linearGradient x1="41.7965617%" y1="111.576076%" x2="110.990164%" y2="-86.665386%" id="linearGradient-4">
<stop stop-color="#00FFCC" offset="0%"></stop>
<stop stop-color="#00F8CC" offset="7.67773506%"></stop>
<stop stop-color="#01E5CB" offset="22%"></stop>
<stop stop-color="#03C5C9" offset="37%"></stop>
<stop stop-color="#0699C7" offset="54%"></stop>
<stop stop-color="#0960C4" offset="73%"></stop>
<stop stop-color="#0C1DC0" offset="92%"></stop>
<stop stop-color="#0E00BF" offset="100%"></stop>
</linearGradient>
<linearGradient x1="48.8999218%" y1="111.576076%" x2="41.991571%" y2="-19.1174766%" id="linearGradient-5">
<stop stop-color="#00FFCC" offset="0%"></stop>
<stop stop-color="#00F8CC" offset="7.67773506%"></stop>
<stop stop-color="#01E5CB" offset="22%"></stop>
<stop stop-color="#03C5C9" offset="37%"></stop>
<stop stop-color="#0699C7" offset="54%"></stop>
<stop stop-color="#0960C4" offset="73%"></stop>
<stop stop-color="#0C1DC0" offset="92%"></stop>
<stop stop-color="#0E00BF" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-6">
<stop stop-color="#003E60" offset="0%"></stop>
<stop stop-color="#08003B" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-7">
<stop stop-color="#003E60" offset="0%"></stop>
<stop stop-color="#08003B" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-8">
<stop stop-color="#003E60" offset="0%"></stop>
<stop stop-color="#08003B" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-9">
<stop stop-color="#003E60" offset="0%"></stop>
<stop stop-color="#08003B" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-10">
<stop stop-color="#003E60" offset="0%"></stop>
<stop stop-color="#08003B" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-11">
<stop stop-color="#003E60" offset="0%"></stop>
<stop stop-color="#08003B" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-12">
<stop stop-color="#003E60" offset="0%"></stop>
<stop stop-color="#08003B" offset="100%"></stop>
</linearGradient>
</defs>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="logo">
<rect id="矩形" fill="#FFFFFF" transform="translate(121.500000, 25.000000) scale(-1, 1) translate(-121.500000, -25.000000) " x="0" y="0" width="243" height="50"></rect>
<g id="编组-20" transform="translate(67.000000, 15.000000)" fill-rule="nonzero">
<g id="编组-19">
<polygon id="路径备份-31" fill="url(#linearGradient-1)" points="4.45610368 20 4.45610368 1.27488528 3.17622614 4.78681422e-13 0 4.78681422e-13 0 20"></polygon>
<polygon id="路径备份-32" fill="url(#linearGradient-2)" points="4.45610368 8.99213795 4.45610368 9.89825286e-13 3.17622614 4.78681422e-13 0 4.78681422e-13"></polygon>
<path d="M20.0961538,9.57362844e-13 L20.0961538,20 L15.6400502,20 L15.6400502,7.83707865 L15.5526756,7.83707865 L11.1402592,16.4325843 L8.91220736,16.4325843 L6.39903846,11.487 L6.39903846,2.853 L10.5991931,10.6263899 L10.6865677,10.6263899 L15.771112,9.57362844e-13 L20.0961538,9.57362844e-13 Z" id="形状结合备份" fill="url(#linearGradient-3)"></path>
<path d="M20.0961538,4.78681422e-13 L15.6400502,9.48857676 L15.5526756,9.48857676 L11.7522062,16.4325843 L8.91220736,16.4325843 L7.92752985,14.495 L10.0815298,10.589 L10.0917642,10.5898876 L10.4565298,9.909 L10.9528133,9.00955425 L10.9455298,8.997 L15.771112,4.78681422e-13 L20.0961538,4.78681422e-13 Z" id="形状结合" fill="url(#linearGradient-4)"></path>
<polygon id="路径" fill="url(#linearGradient-5)" points="15.6400502 9.48857676 15.6400502 20 20.0961538 20 20.0961538 4.78681422e-13"></polygon>
</g>
<path d="M28.0288462,6.31578947 C29.0308704,6.31578947 29.8815473,6.4915661 30.5808768,6.84311936 C31.2802062,7.19467262 31.8177505,7.66048068 32.1935096,8.24054356 C32.4231402,8.59209681 32.5797065,8.99638306 32.6632085,9.45340229 C32.7467105,9.91042153 32.7884615,10.4113849 32.7884615,10.9562925 L32.7884615,10.9562925 L32.7884615,15.359497 L32.7834514,15.6811682 C32.7700911,16.1030321 32.7300101,16.4967718 32.6632085,16.8623872 C32.5797065,17.3194064 32.4231402,17.7236927 32.1935096,18.0752459 C31.8177505,18.6553088 31.2802062,19.1211169 30.5808768,19.4726701 C29.8815473,19.8242234 29.0308704,20 28.0288462,20 C27.0268219,20 26.176145,19.8242234 25.4768155,19.4726701 C24.7774861,19.1211169 24.2399418,18.6553088 23.8641827,18.0752459 C23.6345521,17.7236927 23.4779858,17.3194064 23.3944838,16.8623872 C23.3109818,16.4053679 23.2692308,15.9044046 23.2692308,15.359497 L23.2692308,15.359497 L23.2692308,10.9562925 L23.2742409,10.6346212 C23.2876012,10.2127573 23.3276822,9.81901768 23.3944838,9.45340229 C23.4779858,8.99638306 23.6345521,8.59209681 23.8641827,8.24054356 C24.2399418,7.66048068 24.7774861,7.19467262 25.4768155,6.84311936 C26.176145,6.4915661 27.0268219,6.31578947 28.0288462,6.31578947 Z M28.0288462,8.42105263 C27.5423077,8.42105263 27.15625,8.55026455 26.8706731,8.80868839 C26.5850962,9.06711223 26.4423077,9.45474798 26.4423077,9.97159566 L26.4423077,9.97159566 L26.4423077,15.2915622 L26.4490009,15.4793233 C26.4802359,15.9032999 26.6207933,16.2283486 26.8706731,16.4544695 C27.15625,16.7128933 27.5423077,16.8421053 28.0288462,16.8421053 C28.5153846,16.8421053 28.9014423,16.7128933 29.1870192,16.4544695 C29.4725962,16.1960457 29.6153846,15.8084099 29.6153846,15.2915622 L29.6153846,15.2915622 L29.6153846,9.97159566 L29.6086914,9.78383459 C29.5774564,9.35985798 29.436899,9.03480925 29.1870192,8.80868839 C28.9014423,8.55026455 28.5153846,8.42105263 28.0288462,8.42105263 Z" id="形状结合" fill="url(#linearGradient-6)"></path>
<path d="M44.4230769,4.13406683e-13 L44.4230769,19.8328691 L41.2395965,19.8328691 L41.2395965,18.551532 L41.0349937,18.7511606 C40.9009037,18.8811513 40.7714376,19.004952 40.6465952,19.1225627 C40.4593317,19.2989786 40.251261,19.452182 40.0223834,19.5821727 C39.7935057,19.7121634 39.5334174,19.814299 39.2421185,19.8885794 C38.9508197,19.9628598 38.6075032,20 38.212169,20 C36.880517,20 35.9546028,19.5543175 35.4344262,18.6629526 C35.2471627,18.3472609 35.1119168,17.9572888 35.0286885,17.4930362 C34.9454603,17.0287837 34.9038462,16.4066852 34.9038462,15.6267409 L34.9038462,15.6267409 L34.9047825,9.95236769 C34.9104004,9.0816156 34.9412989,8.42896936 34.9974779,7.99442897 C35.1223203,7.06592386 35.6112863,6.36954503 36.4643758,5.90529248 C36.85971,5.66388115 37.4527112,5.54317549 38.2433796,5.54317549 C38.8675914,5.54317549 39.4241803,5.66852368 39.9131463,5.91922006 C40.4021122,6.16991643 40.8234552,6.5273909 41.1771753,6.99164345 L41.1771753,6.99164345 L41.2395965,6.99164345 L41.2395965,4.13406683e-13 L44.4230769,4.13406683e-13 Z M39.6477532,8.42105263 C39.0403656,8.42105263 38.6267136,8.58145363 38.4067974,8.90225564 C38.1868812,9.22305764 38.0769231,9.59732665 38.0769231,10.0250627 L38.0769231,10.0250627 L38.0769231,14.9974937 L38.0828137,15.1996658 C38.1103032,15.6597048 38.2340061,16.0378725 38.4539223,16.3341688 C38.7052551,16.6727931 39.1031988,16.8421053 39.6477532,16.8421053 C40.1294745,16.8421053 40.5169459,16.6861598 40.8101676,16.374269 C41.1033892,16.0623782 41.25,15.6569201 41.25,15.1578947 L41.25,15.1578947 L41.25,9.89139515 L41.2428822,9.7345447 C41.2096657,9.37684489 41.0601914,9.07713729 40.7944593,8.83542189 C40.4907654,8.55917572 40.1085301,8.42105263 39.6477532,8.42105263 Z" id="形状结合" fill="url(#linearGradient-7)"></path>
<path d="M51.2980769,6.31578947 C52.0287196,6.31578947 52.691517,6.42125545 53.2864689,6.6321874 C53.8814208,6.84311936 54.3876518,7.1331508 54.8051619,7.50228172 C55.6401822,8.29327654 56.0576923,9.28641449 56.0576923,10.4816956 L56.0576923,10.4816956 L56.0576923,14.1730048 L49.732414,14.1730048 L49.732414,15.9922929 L49.7390191,16.1459601 C49.7698431,16.4939429 49.9085511,16.7679072 50.155143,16.9678532 C50.4369623,17.1963628 50.8179403,17.3106176 51.2980769,17.3106176 C51.9034666,17.3106176 52.3053201,17.1612075 52.5036374,16.8623872 C52.7019547,16.5635669 52.8219889,16.2647466 52.8637399,15.9659264 L52.8637399,15.9659264 L56.0576923,15.9659264 L56.0519863,16.1984203 C55.9987306,17.2691734 55.5726847,18.1408692 54.7738487,18.8135078 C54.3563386,19.1826387 53.8553264,19.4726701 53.2708122,19.6836021 C52.6862981,19.894534 52.0287196,20 51.2980769,20 C50.2960526,20 49.4453758,19.8242234 48.7460463,19.4726701 C48.0467169,19.1211169 47.5091726,18.6553088 47.1334135,18.0752459 C46.9037829,17.7236927 46.7472166,17.3194064 46.6637146,16.8623872 C46.5802126,16.4053679 46.5384615,15.9044046 46.5384615,15.359497 L46.5384615,15.359497 L46.5384615,10.9562925 L46.5434717,10.6346212 C46.556832,10.2127573 46.596913,9.81901768 46.6637146,9.45340229 C46.7472166,8.99638306 46.9037829,8.59209681 47.1334135,8.24054356 C47.5091726,7.66048068 48.0467169,7.19467262 48.7460463,6.84311936 C49.4453758,6.4915661 50.2960526,6.31578947 51.2980769,6.31578947 Z M51.2980769,8.42105263 C50.8115385,8.42105263 50.4254808,8.55263158 50.1399038,8.81578947 C49.8543269,9.07894737 49.7115385,9.47368421 49.7115385,10 L49.7115385,10 L49.7115385,11.5789474 L52.8846154,11.5789474 L52.8846154,10 L52.8779222,9.80879934 C52.8466872,9.37705592 52.7061298,9.04605263 52.45625,8.81578947 C52.1706731,8.55263158 51.7846154,8.42105263 51.2980769,8.42105263 Z" id="形状结合" fill="url(#linearGradient-6)"></path>
<path d="M62.4038462,20 L62.4038462,17.3259053 C61.865722,17.270195 61.4992409,17.1448468 61.3044028,16.9498607 C61.1095648,16.7548747 61.0121457,16.3881151 61.0121457,15.8495822 L61.0121457,15.8495822 L61.0121457,4.13406683e-13 L58.1730769,4.13406683e-13 L58.1730769,16.0445682 C58.1730769,16.8802228 58.270496,17.553389 58.465334,18.0640669 C58.6601721,18.5747447 58.9431511,18.9693593 59.3142713,19.2479109 C59.6853914,19.5450325 60.1307355,19.7446611 60.6503036,19.8467967 C61.1698718,19.9489322 61.754386,20 62.4038462,20 L62.4038462,20 Z" id="路径" fill="url(#linearGradient-8)"></path>
<polygon id="路径" fill="url(#linearGradient-7)" points="79.3269231 20 79.3269231 17.1348315 73.0016447 17.1348315 73.0016447 4.13406683e-13 69.8076923 4.13406683e-13 69.8076923 20"></polygon>
<path d="M84.6153846,4.13406683e-13 L84.6153846,4.13406683e-13 L84.6153846,4.13406683e-13 L81.4423077,4.13406683e-13 L81.4423077,3.15789474 L81.4574899,3.15789474 C83.201547,3.15789474 84.6153846,1.7440571 84.6153846,4.13406683e-13 Z" id="路径" fill="url(#linearGradient-9)"></path>
<polygon id="路径" fill="url(#linearGradient-10)" points="84.6153846 20 84.6153846 5.26510598 81.4423077 5.26510598 81.4423077 20"></polygon>
<path d="M89.9142497,20 L89.9142497,10.9038679 C89.9142497,10.2992374 90.0286885,9.83687288 90.2575662,9.51677439 C90.4864439,9.1966759 90.9025851,9.03662665 91.5059899,9.03662665 C92.0053594,9.03662665 92.39029,9.17889265 92.6607818,9.46342464 C92.9312736,9.74795664 93.0665195,10.1391881 93.0665195,10.6371191 L93.0665195,20 L96.25,20 L96.25,9.62347389 C96.25,9.0188434 96.1563682,8.50757498 95.9691047,8.08966862 C95.7818411,7.67176225 95.5321564,7.3294347 95.2200504,7.06268595 C94.9079445,6.79593721 94.5542245,6.60476728 94.1588903,6.48917616 C93.7635561,6.37358503 93.3682219,6.31578947 92.9728878,6.31578947 C92.2446406,6.31578947 91.6464376,6.45360966 91.1782787,6.72925003 C90.7101198,7.00489039 90.3095839,7.35610957 89.9766709,7.78290756 L89.9142497,7.78290756 L89.9142497,5.26510598 L86.7307692,5.26510598 L86.7307692,20 L89.9142497,20 Z" id="路径" fill="url(#linearGradient-11)"></path>
<polygon id="路径" fill="url(#linearGradient-12)" points="102.470665 20 102.470665 16.011236 103.934702 13.8483146 106.683507 20 110 20 105.637766 11.5449438 109.253042 5.75842697 106.205454 5.75842697 102.530422 11.9662921 102.470665 11.9662921 102.470665 4.13406683e-13 99.4230769 4.13406683e-13 99.4230769 20"></polygon>
</g>
</g>
</g>
</svg>
\ No newline at end of file
...@@ -6,7 +6,7 @@ import { Plus } from '@icon-park/vue-next' ...@@ -6,7 +6,7 @@ import { Plus } from '@icon-park/vue-next'
import type { MenuOption } from 'naive-ui' import type { MenuOption } from 'naive-ui'
import CustomIcon from '@/components/custom-icon/custom-icon.vue' import CustomIcon from '@/components/custom-icon/custom-icon.vue'
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
import LanguageSetting from '@/components/language-setting/language-setting.vue' // import LanguageSetting from '@/components/language-setting/language-setting.vue'
const { t } = useI18n() const { t } = useI18n()
...@@ -90,7 +90,7 @@ function handleMenuValueChange(key: string) { ...@@ -90,7 +90,7 @@ function handleMenuValueChange(key: string) {
<template> <template>
<div class="flex h-full flex-col justify-between overflow-hidden"> <div class="flex h-full flex-col justify-between overflow-hidden">
<div class="flex flex-1 flex-col overflow-hidden"> <div class="flex flex-1 flex-col overflow-hidden">
<div class="bg-px-page_logo-png mx-auto flex h-[50px] w-full shrink-0 bg-contain bg-center bg-no-repeat" /> <div class="bg-svg-page_logo mx-auto flex h-[50px] w-full shrink-0 bg-contain bg-center bg-no-repeat" />
<div class="px-3 py-5"> <div class="px-3 py-5">
<n-button <n-button
...@@ -117,16 +117,18 @@ function handleMenuValueChange(key: string) { ...@@ -117,16 +117,18 @@ function handleMenuValueChange(key: string) {
</n-scrollbar> </n-scrollbar>
</div> </div>
<div class="mb-[20px] mt-6 px-[12px]"> <div class="mb-[20px] mt-6">
<div> <div>
<NDropdown <NDropdown
v-if="userStore.isLogin" v-if="userStore.isLogin"
trigger="click" trigger="click"
placement="top-start" placement="top"
:options="avatarOptions" :options="avatarOptions"
@select="handleDropdownSelect" @select="handleDropdownSelect"
> >
<div class="flex h-full cursor-pointer items-center"> <div
class="flex h-full cursor-pointer items-center rounded-[6px] px-[12px] py-[4px] transition hover:bg-[#F3F3F5]"
>
<NAvatar round :size="40" object-fit="cover" :src="userStore.userInfo.avatarUrl || defaultAvatar" /> <NAvatar round :size="40" object-fit="cover" :src="userStore.userInfo.avatarUrl || defaultAvatar" />
<div class="ml-3 line-clamp-1 max-w-[140px] select-none break-all text-base"> <div class="ml-3 line-clamp-1 max-w-[140px] select-none break-all text-base">
...@@ -142,9 +144,9 @@ function handleMenuValueChange(key: string) { ...@@ -142,9 +144,9 @@ function handleMenuValueChange(key: string) {
</div> </div>
</div> </div>
<div class="mt-[10px]"> <!-- <div class="mt-[10px]">
<LanguageSetting arrow-direction="top" /> <LanguageSetting arrow-direction="top" />
</div> </div> -->
</div> </div>
</div> </div>
</template> </template>
......
...@@ -31,7 +31,7 @@ watchEffect(() => { ...@@ -31,7 +31,7 @@ watchEffect(() => {
<NLayoutContent class="bg-[#f3f6f9]! flex-1"> <NLayoutContent class="bg-[#f3f6f9]! flex-1">
<main <main
class="main-content-container box-border h-full transition-[padding] duration-300 ease-in-out" class="main-content-container m-auto box-border h-full max-w-[1669px] transition-[padding] duration-300 ease-in-out"
:class="{ 'px-6': isShowMainContentContainerPadding, 'py-4': isShowMainContentContainerPadding }" :class="{ 'px-6': isShowMainContentContainerPadding, 'py-4': isShowMainContentContainerPadding }"
> >
<RouterView v-slot="{ Component }"> <RouterView v-slot="{ Component }">
......
...@@ -3,12 +3,12 @@ import { createI18n } from 'vue-i18n' ...@@ -3,12 +3,12 @@ import { createI18n } from 'vue-i18n'
import messages from './messages' import messages from './messages'
import { ss } from '@/utils/storage' import { ss } from '@/utils/storage'
export const defaultLocale = 'zh-CN' export const defaultLocale = 'zh-HK'
const i18n = createI18n<[I18n.Schema], I18n.LangType>({ const i18n = createI18n<[I18n.Schema], I18n.LangType>({
legacy: false, legacy: false,
locale: ss.get('i18nextLng') || defaultLocale, locale: ss.get('i18nextLng') || defaultLocale,
fallbackLocale: 'zh-HK', fallbackLocale: 'zh-CN',
messages, messages,
}) })
......
...@@ -83,7 +83,6 @@ common_module: ...@@ -83,7 +83,6 @@ common_module:
total_file: '1 file in total | {count} files in total' total_file: '1 file in total | {count} files in total'
expired_identity: 'Your identity has expired. Please login again' expired_identity: 'Your identity has expired. Please login again'
dialogue_module: dialogue_module:
continue_question_message: 'You can keep asking questions' continue_question_message: 'You can keep asking questions'
empty_message_content: '[Empty content]' empty_message_content: '[Empty content]'
...@@ -110,8 +109,26 @@ common_module: ...@@ -110,8 +109,26 @@ common_module:
total: 'Total' total: 'Total'
goto: 'Skip to' goto: 'Skip to'
router_title_module:
login: 'Login'
server_error: 'Server error'
universal: 'The page was not found'
home: 'Home page'
personal: 'Personal space'
app_setting: 'Application Settings'
agent_application: 'Agent application'
share_application: 'My Agent application'
knowledge: 'Knowledge base'
upload_knowledge_document: 'Uploading Knowledge Base Documents'
knowledge_document_list: 'Knowledge base document list'
knowledge_document_detail: 'Knowledge base Document Details'
multi_model_dialogue: 'Multi-model debugging'
explore: 'Explore'
application_square: 'Application square'
personal_settings: 'Personal settings'
login_module: login_module:
app_welcome_words: 'Welcome to CuiXiang POC' app_welcome_words: 'Hi, welcome to Model Link'
please_enter_your_account_number: 'Please enter your account number' please_enter_your_account_number: 'Please enter your account number'
please_enter_your_password: 'Please enter password' please_enter_your_password: 'Please enter password'
please_enter_your_cell_phone_number: 'Please enter your phone number' please_enter_your_cell_phone_number: 'Please enter your phone number'
...@@ -144,23 +161,6 @@ home_module: ...@@ -144,23 +161,6 @@ home_module:
interrupt_dialogue_prompt: 'The current reply is not complete. Are you sure to interrupt and initiate a new session?' interrupt_dialogue_prompt: 'The current reply is not complete. Are you sure to interrupt and initiate a new session?'
interrupt_the_conversation_and_apply_the_history_prompt: 'The current reply is not complete, are you sure to interrupt the conversation and apply another record?' interrupt_the_conversation_and_apply_the_history_prompt: 'The current reply is not complete, are you sure to interrupt the conversation and apply another record?'
router_title_module:
login: 'Login'
server_error: 'Server error'
universal: 'The page was not found'
home: 'Home page'
personal: 'Personal space'
app_setting: 'Application Settings'
agent_application: 'Agent application'
share_application: 'My Agent application'
knowledge: 'Knowledge base'
upload_knowledge_document: 'Uploading Knowledge Base Documents'
knowledge_document_list: 'Knowledge base document list'
knowledge_document_detail: 'Knowledge base Document Details'
multi_model_dialogue: 'Multi-model debugging'
explore: 'Explore'
application_square: 'Application square'
personal_space_module: personal_space_module:
title: 'Personal space' title: 'Personal space'
create_btn_text: 'Newly build' create_btn_text: 'Newly build'
......
...@@ -82,7 +82,6 @@ common_module: ...@@ -82,7 +82,6 @@ common_module:
total_file: '共{count}个文件' total_file: '共{count}个文件'
expired_identity: '身份已过期,请重新登录' expired_identity: '身份已过期,请重新登录'
dialogue_module: dialogue_module:
continue_question_message: '你可以继续提问' continue_question_message: '你可以继续提问'
empty_message_content: '[空内容]' empty_message_content: '[空内容]'
...@@ -109,6 +108,24 @@ common_module: ...@@ -109,6 +108,24 @@ common_module:
total: '共' total: '共'
goto: '跳转至' goto: '跳转至'
router_title_module:
login: '登录'
server_error: '服务器错误'
universal: '未找到该页面'
home: '首页'
personal: '个人空间'
app_setting: '应用设置'
agent_application: 'Agent应用'
share_application: '我的Agent应用'
knowledge: '知识库'
upload_knowledge_document: '上传知识库文档'
knowledge_document_list: '知识库文档列表'
knowledge_document_detail: '知识库文档详情'
multi_model_dialogue: '多模型调试'
explore: '探索'
application_square: '应用广场'
personal_settings: '个人设置'
login_module: login_module:
app_welcome_words: 'Hi, 欢迎使用Model Link' app_welcome_words: 'Hi, 欢迎使用Model Link'
please_enter_your_account_number: '请输入账号' please_enter_your_account_number: '请输入账号'
...@@ -127,7 +144,7 @@ login_module: ...@@ -127,7 +144,7 @@ login_module:
home_module: home_module:
agent_welcome_message: 'Hi, 欢迎使用Model Link' agent_welcome_message: 'Hi, 欢迎使用Model Link'
agent_description: '在这里,你可以体验多个平台的模型和专属的智能体' agent_description: '在这里,你可以体验多个平台的模型和创建专属的智能体'
currently_in_the_latest_session: '当前已是最新会话' currently_in_the_latest_session: '当前已是最新会话'
switching_over: '切换中' switching_over: '切换中'
history_application_success: '历史记录应用成功' history_application_success: '历史记录应用成功'
...@@ -143,23 +160,6 @@ home_module: ...@@ -143,23 +160,6 @@ home_module:
interrupt_dialogue_prompt: '当前回复尚未完成,是否确定打断发起新会话?' interrupt_dialogue_prompt: '当前回复尚未完成,是否确定打断发起新会话?'
interrupt_the_conversation_and_apply_the_history_prompt: '当前回复尚未完成,是否确定打断对话应用其它记录?' interrupt_the_conversation_and_apply_the_history_prompt: '当前回复尚未完成,是否确定打断对话应用其它记录?'
router_title_module:
login: '登录'
server_error: '服务器错误'
universal: '未找到该页面'
home: '首页'
personal: '个人空间'
app_setting: '应用设置'
agent_application: 'Agent应用'
share_application: '我的Agent应用'
knowledge: '知识库'
upload_knowledge_document: '上传知识库文档'
knowledge_document_list: '知识库文档列表'
knowledge_document_detail: '知识库文档详情'
multi_model_dialogue: '多模型调试'
explore: '探索'
application_square: '应用广场'
personal_space_module: personal_space_module:
title: '个人空间' title: '个人空间'
create_btn_text: '新建' create_btn_text: '新建'
......
...@@ -108,8 +108,26 @@ common_module: ...@@ -108,8 +108,26 @@ common_module:
total: '共' total: '共'
goto: '跳轉至' goto: '跳轉至'
router_title_module:
login: '登錄'
server_error: '服務器錯誤'
universal: '未找到該頁面'
home: '首頁'
personal: '個人空間'
app_setting: '應用設置'
agent_application: 'Agent應用'
share_application: '我的Agent應用'
knowledge: '知識庫'
upload_knowledge_document: '上傳知識庫文檔'
knowledge_document_list: '知識庫文檔列表'
knowledge_document_detail: '知識庫文檔詳情'
multi_model_dialogue: '多模型調試'
explore: '探索'
application_square: '應用廣場'
personal_settings: '個人設置'
login_module: login_module:
app_welcome_words: '歡迎使用萃想POC' app_welcome_words: 'Hi, 歡迎使用Model Link'
please_enter_your_account_number: '請輸入賬號' please_enter_your_account_number: '請輸入賬號'
please_enter_your_password: '請輸入密碼' please_enter_your_password: '請輸入密碼'
please_enter_your_cell_phone_number: '請輸入手機號' please_enter_your_cell_phone_number: '請輸入手機號'
...@@ -128,7 +146,7 @@ login_module: ...@@ -128,7 +146,7 @@ login_module:
home_module: home_module:
agent_welcome_message: 'Hi, 歡迎使用Model Link' agent_welcome_message: 'Hi, 歡迎使用Model Link'
agent_description: '在這裏,你可以體驗多個平臺的模型和專屬的智' agent_description: '在這裏,你可以體驗多個平臺的模型和創建專屬的智能體'
currently_in_the_latest_session: '當前已是最新會話' currently_in_the_latest_session: '當前已是最新會話'
switching_over: '切換中' switching_over: '切換中'
history_application_success: '歷史記錄應用成功' history_application_success: '歷史記錄應用成功'
...@@ -142,23 +160,6 @@ home_module: ...@@ -142,23 +160,6 @@ home_module:
history_record_item_apply_tip: '是否確定應用此會話記錄?' history_record_item_apply_tip: '是否確定應用此會話記錄?'
historical_record: '歷史記錄' historical_record: '歷史記錄'
router_title_module:
login: '登錄'
server_error: '服務器錯誤'
universal: '未找到該頁面'
home: '首頁'
personal: '個人空間'
app_setting: '應用設置'
agent_application: 'Agent應用'
share_application: '我的Agent應用'
knowledge: '知識庫'
upload_knowledge_document: '上傳知識庫文檔'
knowledge_document_list: '知識庫文檔列表'
knowledge_document_detail: '知識庫文檔詳情'
multi_model_dialogue: '多模型調試'
explore: '探索'
application_square: '應用廣場'
personal_space_module: personal_space_module:
title: '個人空間' title: '個人空間'
create_btn_text: '新建' create_btn_text: '新建'
......
...@@ -178,9 +178,9 @@ function handleAddAgentApplications() { ...@@ -178,9 +178,9 @@ function handleAddAgentApplications() {
<div> <div>
<n-collapse-transition :show="isShowCarousel"> <n-collapse-transition :show="isShowCarousel">
<div> <div>
<n-carousel autoplay class="h-[280px] w-full rounded-[10px] object-cover 2xl:object-fill"> <n-carousel autoplay class="h-[280px] w-full rounded-[20px] object-cover 2xl:object-fill">
<img class="h-[280px] w-full object-cover" src="@/assets/images/application-square-carousel.png" /> <img class="h-full w-full object-cover" src="@/assets/images/application-square-carousel.png" />
<img class="h-[280px] w-full object-cover" src="@/assets/images/application-square-carousel.png" /> <!-- <img class="h-[280px] w-full object-cover" src="@/assets/images/application-square-carousel.png" /> -->
</n-carousel> </n-carousel>
</div> </div>
<div class="h-[20px] bg-[#f3f6f9]"></div> <div class="h-[20px] bg-[#f3f6f9]"></div>
......
...@@ -42,9 +42,17 @@ const isSelectAllRecord = computed(() => { ...@@ -42,9 +42,17 @@ const isSelectAllRecord = computed(() => {
getSessionHistoryRecordList() getSessionHistoryRecordList()
})() })()
function getSessionHistoryRecordList() { function getSessionHistoryRecordList(isCreateNewSessionCheck = false) {
fetchSessionHistoryRecordList<SessionHistoryRecordItem[]>().then((res) => { fetchSessionHistoryRecordList<SessionHistoryRecordItem[]>().then((res) => {
sessionHistoryRecordList.value = res.data sessionHistoryRecordList.value = res.data
if (
isCreateNewSessionCheck &&
props.currentSessionId &&
sessionHistoryRecordList.value.find((item) => item.dialogsId !== props.currentSessionId)
) {
emit('createNewSession')
}
}) })
} }
...@@ -104,10 +112,9 @@ function handleRecordDelete() { ...@@ -104,10 +112,9 @@ function handleRecordDelete() {
window.$message.success(t('common_module.delete_success_message')) window.$message.success(t('common_module.delete_success_message'))
isHistoryListEdit.value = false isHistoryListEdit.value = false
currentSelectHistoryRecordList.value = []
emit('createNewSession') getSessionHistoryRecordList(true)
getSessionHistoryRecordList()
}) })
}) })
.catch(() => { .catch(() => {
......
...@@ -35,7 +35,7 @@ const smsLoginFormRef = useTemplateRef<FormInst>('smsLoginFormRef') ...@@ -35,7 +35,7 @@ const smsLoginFormRef = useTemplateRef<FormInst>('smsLoginFormRef')
const emailLoginFormRef = useTemplateRef<FormInst>('emailLoginFormRef') const emailLoginFormRef = useTemplateRef<FormInst>('emailLoginFormRef')
const countdownRef = useTemplateRef<CountdownInst>('countdownRef') const countdownRef = useTemplateRef<CountdownInst>('countdownRef')
const currentLoginMethod = ref<LoginMethod>('password') const currentLoginMethod = ref<LoginMethod>('sms')
const showCardReserveAnimation = ref(false) const showCardReserveAnimation = ref(false)
const loginBtnLoading = ref(false) const loginBtnLoading = ref(false)
...@@ -232,6 +232,8 @@ function handleLoginSubmit(method: LoginMethod) { ...@@ -232,6 +232,8 @@ function handleLoginSubmit(method: LoginMethod) {
memberId: res.data.memberId, memberId: res.data.memberId,
mobilePhone: res.data.mobilePhone, mobilePhone: res.data.mobilePhone,
nickName: res.data.nickName, nickName: res.data.nickName,
remark: res.data.remark,
email: res.data.email,
}) })
const redirectUrl = decodeURIComponent((route.query.redirect as string) || '') const redirectUrl = decodeURIComponent((route.query.redirect as string) || '')
......
...@@ -5,7 +5,7 @@ export default defineConfig({ ...@@ -5,7 +5,7 @@ export default defineConfig({
[ [
/^bg-svg-([\w-]+)$/, /^bg-svg-([\w-]+)$/,
([, dirFname]) => { ([, dirFname]) => {
let url = '@/assets/images/' let url = '@/assets/svgs/'
const dirFnameArr = dirFname.split('-') const dirFnameArr = dirFname.split('-')
...@@ -13,12 +13,12 @@ export default defineConfig({ ...@@ -13,12 +13,12 @@ export default defineConfig({
const [dirStr, fname] = dirFnameArr const [dirStr, fname] = dirFnameArr
const dirPath = dirStr.split('_').join('/') const dirPath = dirStr.split('_').join('/')
url += `${dirPath}/${fname.replace(/_/g, '-')}` url += `${dirPath}/${fname.replace(/_/g, '-')}.svg`
} else { } else {
url += `${dirFname.replace(/_/g, '-')}` url += `${dirFname.replace(/_/g, '-')}.svg`
} }
return { 'background-image': `url(@/assets/svgs/${url}.svg)`, 'background-size': 'cover' } return { 'background-image': `url(${url})`, 'background-size': 'cover' }
}, },
], ],
[ [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment