mirror of
https://github.com/1Panel-dev/1Panel
synced 2024-11-21 23:29:44 +00:00
fix: 解决应用安装快速跳转失败的问题 (#4236)
This commit is contained in:
parent
f6777d51b5
commit
ce69f6a142
@ -10,10 +10,9 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import cacheRouter from '@/routers/cache-router';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { computed } from 'vue';
|
||||
|
||||
const key = computed(() => {
|
||||
return useRoute()?.path + Math.random();
|
||||
return Math.random();
|
||||
});
|
||||
</script>
|
||||
|
@ -107,9 +107,7 @@ import { getRandomStr } from '@/utils/util';
|
||||
import { GetAppService } from '@/api/modules/app';
|
||||
import { Rules } from '@/global/form-rules';
|
||||
import { App } from '@/api/interface/app';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { getDBName } from '@/utils/util';
|
||||
const router = useRouter();
|
||||
|
||||
interface ParamObj extends App.FromField {
|
||||
services: App.AppService[];
|
||||
@ -256,7 +254,7 @@ const getLabel = (row: ParamObj): string => {
|
||||
};
|
||||
|
||||
const toPage = (key: string) => {
|
||||
router.push({ name: 'AppAll', query: { install: key } });
|
||||
window.location.href = '/apps/all?install=' + key;
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user