+
@@ -17,6 +20,12 @@
:icon="isCollapse ? 'ArrowRightBold' : 'ArrowLeftBold'"
/>
+
@@ -25,20 +34,56 @@
@@ -47,17 +92,34 @@ const showBack = computed(() => {
&__left {
position: relative;
box-sizing: border-box;
- transition: width 0.28s;
+ // transition: width 0.28s;
width: var(--sidebar-width);
- min-width: var(--sidebar-width);
- box-sizing: border-box;
+ .splitter-bar-line {
+ z-index: 1;
+ position: absolute;
+ top: 0;
+ right: 0;
+ cursor: col-resize;
+ width: 4px;
+ height: 100%;
+ &.hover:after {
+ width: 1px;
+ height: 100%;
+ content: '';
+ z-index: 2;
+ position: absolute;
+ right: -1px;
+ top: 0;
+ background: var(--el-color-primary);
+ }
+ }
.collapse {
position: absolute;
top: 36px;
right: -12px;
box-shadow: 0px 5px 10px 0px var(--app-text-color-light-1);
- z-index: 1;
+ z-index: 2;
}
.layout-container__left_content {
diff --git a/ui/src/components/model-select/index.vue b/ui/src/components/model-select/index.vue
index b714952fd..223f641b0 100644
--- a/ui/src/components/model-select/index.vue
+++ b/ui/src/components/model-select/index.vue
@@ -61,7 +61,7 @@
-
+
-
{{ user.userInfo?.nick_name }}({{ user.userInfo?.username }})
+
{{ user.userInfo?.nick_name }} ({{ user.userInfo?.username }})
{{ $t('layout.about.title') }}
@@ -222,6 +232,7 @@ onMounted(() => {
+
diff --git a/ui/src/views/application-overview/index.vue b/ui/src/views/application-overview/index.vue
index e8d260cbc..837c5f65e 100644
--- a/ui/src/views/application-overview/index.vue
+++ b/ui/src/views/application-overview/index.vue
@@ -11,7 +11,7 @@
-
+
@@ -22,7 +22,7 @@
{{ $t('views.applicationOverview.appInfo.publicAccessLink') }}
+ >{{ $t('views.applicationOverview.appInfo.publicAccessLink') }}
-
+
@@ -98,12 +98,12 @@
{{ $t('views.applicationOverview.appInfo.apiAccessCredentials') }}
+ >{{ $t('views.applicationOverview.appInfo.apiAccessCredentials') }}
-
API {{ $t('common.fileUpload.document') }}:
+
API {{ $t('common.fileUpload.document') }}:
{{
- baseUrl + id
- }}
+ baseUrl + id
+ }}
@@ -134,7 +134,7 @@
v-if="permissionPrecise.overview_api_key(id)"
>
-
+
{{ $t('views.applicationOverview.appInfo.apiKey') }}
@@ -173,7 +173,8 @@
/>
-
+
@@ -184,17 +185,17 @@
:data="detail"
:api-input-params="mapToUrlParams(apiInputParams)"
/>
-
+
-
+
-
+
+
diff --git a/ui/vite.config.ts b/ui/vite.config.ts
index ad11c8aa4..708438b80 100644
--- a/ui/vite.config.ts
+++ b/ui/vite.config.ts
@@ -1,11 +1,11 @@
-import { fileURLToPath, URL } from 'node:url'
-import type { ProxyOptions } from 'vite'
-import { defineConfig, loadEnv } from 'vite'
+import {fileURLToPath, URL} from 'node:url'
+import type {ProxyOptions} from 'vite'
+import {defineConfig, loadEnv} from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import DefineOptions from 'unplugin-vue-define-options/vite'
import path from 'path'
-import { createHtmlPlugin } from 'vite-plugin-html'
+import {createHtmlPlugin} from 'vite-plugin-html'
import fs from 'fs'
// import vueDevTools from 'vite-plugin-vue-devtools'
const envDir = './env'
@@ -69,6 +69,10 @@ export default defineConfig((conf: any) => {
target: `http://127.0.0.1:8080`,
changeOrigin: true,
}
+ proxyConf[`^${ENV.VITE_BASE_PATH}oss\/get_url\/.*$`] = {
+ target: `http://127.0.0.1:8080`,
+ changeOrigin: true,
+ }
// 前端静态资源转发到本身
proxyConf[ENV.VITE_BASE_PATH] = {
target: `http://127.0.0.1:${ENV.VITE_APP_PORT}`,
@@ -85,7 +89,7 @@ export default defineConfig((conf: any) => {
vue(),
vueJsx(),
DefineOptions(),
- createHtmlPlugin({ template: ENV.VITE_ENTRY }),
+ createHtmlPlugin({template: ENV.VITE_ENTRY}),
renameHtmlPlugin(`dist${ENV.VITE_BASE_PATH}`, ENV.VITE_ENTRY),
],
server: {