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:
parent
f6777d51b5
commit
ce69f6a142
@ -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>
|
||||||
|
@ -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(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user