diff --git a/ui/src/layout/login-layout/LoginLayout.vue b/ui/src/layout/login-layout/LoginLayout.vue index 4500f8551..4e58de891 100644 --- a/ui/src/layout/login-layout/LoginLayout.vue +++ b/ui/src/layout/login-layout/LoginLayout.vue @@ -79,7 +79,7 @@ const loginImage = computed(() => { return `${fileURL.value}` } else { const imgName = getThemeImg(theme.themeInfo?.theme) - const imgPath = `/ui/theme/${imgName}.jpg` + const imgPath = `/theme/${imgName}.jpg` const imageUrl = new URL(imgPath, import.meta.url).href return imageUrl } diff --git a/ui/src/layout/login-layout/UserLoginLayout.vue b/ui/src/layout/login-layout/UserLoginLayout.vue index 09b2893a7..1442e9bef 100644 --- a/ui/src/layout/login-layout/UserLoginLayout.vue +++ b/ui/src/layout/login-layout/UserLoginLayout.vue @@ -47,7 +47,7 @@ const loginImage = computed(() => { return `${fileURL.value}` } else { const imgName = getThemeImg(theme.themeInfo?.theme) - const imgPath = `../../assets/theme/${imgName}.jpg` + const imgPath = `/theme/${imgName}.jpg` const imageUrl = new URL(imgPath, import.meta.url).href return imageUrl } diff --git a/ui/src/utils/application.ts b/ui/src/utils/application.ts index 9f4999ece..b6fd8d923 100644 --- a/ui/src/utils/application.ts +++ b/ui/src/utils/application.ts @@ -1,3 +1,13 @@ export function isWorkFlow(type: string | undefined) { return type === 'WORK_FLOW' } + +export function mapToUrlParams(map: any[]) { + const params = new URLSearchParams() + + map.forEach((item: any) => { + params.append(encodeURIComponent(item.name), encodeURIComponent(item.value)) + }) + + return params.toString() // 返回 URL 查询字符串 +} diff --git a/ui/src/views/application-overview/index.vue b/ui/src/views/application-overview/index.vue index 75cc1b864..d11e6a3a8 100644 --- a/ui/src/views/application-overview/index.vue +++ b/ui/src/views/application-overview/index.vue @@ -225,6 +225,7 @@ import { nowDate, beforeDay } from '@/utils/time' import { MsgSuccess, MsgConfirm } from '@/utils/message' import { copyClick } from '@/utils/clipboard' import { isAppIcon } from '@/utils/common' +import { mapToUrlParams } from '@/utils/application' import useStore from '@/stores' import { t } from '@/locales' import { EditionConst } from '@/utils/permission/data' @@ -459,16 +460,6 @@ function refreshIcon() { getDetail() } -function mapToUrlParams(map: any[]) { - const params = new URLSearchParams() - - map.forEach((item: any) => { - params.append(encodeURIComponent(item.name), encodeURIComponent(item.value)) - }) - - return params.toString() // 返回 URL 查询字符串 -} - onMounted(() => { getDetail() getAccessToken() diff --git a/ui/src/views/application-workflow/index.vue b/ui/src/views/application-workflow/index.vue index 34fb98429..a56696add 100644 --- a/ui/src/views/application-workflow/index.vue +++ b/ui/src/views/application-workflow/index.vue @@ -46,6 +46,11 @@