mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
fix: back btn of config list unable to return to the previous page
This commit is contained in:
parent
7646b87da0
commit
eb9ede5a4e
1 changed files with 8 additions and 7 deletions
|
@ -19,7 +19,7 @@ const basePath = computed(() => {
|
||||||
return dir
|
return dir
|
||||||
})
|
})
|
||||||
|
|
||||||
const get_params = computed(() => {
|
const getParams = computed(() => {
|
||||||
return {
|
return {
|
||||||
dir: basePath.value,
|
dir: basePath.value,
|
||||||
}
|
}
|
||||||
|
@ -27,30 +27,31 @@ const get_params = computed(() => {
|
||||||
|
|
||||||
const update = ref(1)
|
const update = ref(1)
|
||||||
|
|
||||||
watch(get_params, () => {
|
watch(getParams, () => {
|
||||||
update.value++
|
update.value++
|
||||||
})
|
})
|
||||||
|
|
||||||
const inspect_config = ref()
|
const refInspectConfig = ref()
|
||||||
|
|
||||||
watch(route, () => {
|
watch(route, () => {
|
||||||
inspect_config.value?.test()
|
refInspectConfig.value?.test()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ACard :title="$gettext('Configurations')">
|
<ACard :title="$gettext('Configurations')">
|
||||||
<InspectConfig ref="inspect_config" />
|
<InspectConfig ref="refInspectConfig" />
|
||||||
<StdTable
|
<StdTable
|
||||||
:key="update"
|
:key="update"
|
||||||
ref="table"
|
ref="table"
|
||||||
:api="api"
|
:api="api"
|
||||||
:columns="configColumns"
|
:columns="configColumns"
|
||||||
disable-delete
|
disable-delete
|
||||||
disable_search
|
disable-search
|
||||||
disable-view
|
disable-view
|
||||||
row-key="name"
|
row-key="name"
|
||||||
:get_params="get_params"
|
:get-params="getParams"
|
||||||
|
disable-query-params
|
||||||
@click-edit="(r, row) => {
|
@click-edit="(r, row) => {
|
||||||
if (!row.is_dir) {
|
if (!row.is_dir) {
|
||||||
$router.push({
|
$router.push({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue