mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-01 03:24:14 +08:00
fix: 删除提示页面 增加button
This commit is contained in:
parent
f3c23d8b06
commit
4f60a8464a
@ -11,7 +11,10 @@
|
|||||||
<el-col :span="12" :offset="6">
|
<el-col :span="12" :offset="6">
|
||||||
<br />
|
<br />
|
||||||
<el-descriptions border :column="1">
|
<el-descriptions border :column="1">
|
||||||
<el-descriptions-item v-for="(item, key) in map" :key="key" :label="$t('app.' + item[0])">
|
<el-descriptions-item v-for="(item, key) in map" :key="key">
|
||||||
|
<template #label>
|
||||||
|
<a href="javascript:void(0);" @click="toPage(item[0])">{{ $t('app.' + item[0]) }}</a>
|
||||||
|
</template>
|
||||||
{{ map.get(item[0]).toString() }}
|
{{ map.get(item[0]).toString() }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
@ -22,6 +25,8 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { App } from '@/api/interface/app';
|
import { App } from '@/api/interface/app';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
interface InstallRrops {
|
interface InstallRrops {
|
||||||
items: App.AppInstallResource[];
|
items: App.AppInstallResource[];
|
||||||
@ -48,6 +53,18 @@ const acceptParams = (props: InstallRrops) => {
|
|||||||
open.value = true;
|
open.value = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const toPage = (key: string) => {
|
||||||
|
if (key === 'app') {
|
||||||
|
open.value = false;
|
||||||
|
}
|
||||||
|
if (key === 'website') {
|
||||||
|
router.push({ name: 'Website' });
|
||||||
|
}
|
||||||
|
if (key === 'database') {
|
||||||
|
router.push({ name: 'Mysql' });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
acceptParams,
|
acceptParams,
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user