1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 16:29:17 +08:00

fix: 解决应用安装快速跳转失败的问题 (#4236)

This commit is contained in:
zhengkunwang 2024-03-19 17:12:07 +08:00 committed by GitHub
parent f6777d51b5
commit ce69f6a142
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -10,10 +10,9 @@
<script setup lang="ts"> <script setup lang="ts">
import cacheRouter from '@/routers/cache-router'; import cacheRouter from '@/routers/cache-router';
import { useRoute } from 'vue-router';
import { computed } from 'vue'; import { computed } from 'vue';
const key = computed(() => { const key = computed(() => {
return useRoute()?.path + Math.random(); return Math.random();
}); });
</script> </script>

View File

@ -107,9 +107,7 @@ import { getRandomStr } from '@/utils/util';
import { GetAppService } from '@/api/modules/app'; import { GetAppService } from '@/api/modules/app';
import { Rules } from '@/global/form-rules'; import { Rules } from '@/global/form-rules';
import { App } from '@/api/interface/app'; import { App } from '@/api/interface/app';
import { useRouter } from 'vue-router';
import { getDBName } from '@/utils/util'; import { getDBName } from '@/utils/util';
const router = useRouter();
interface ParamObj extends App.FromField { interface ParamObj extends App.FromField {
services: App.AppService[]; services: App.AppService[];
@ -256,7 +254,7 @@ const getLabel = (row: ParamObj): string => {
}; };
const toPage = (key: string) => { const toPage = (key: string) => {
router.push({ name: 'AppAll', query: { install: key } }); window.location.href = '/apps/all?install=' + key;
}; };
onMounted(() => { onMounted(() => {