From 784e6182d02076a508ba7c6086eeacdffadcd942 Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期三, 07 二月 2024 17:17:14 +0800 Subject: [PATCH] update --- src/container/maintenance/index.vue | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/container/maintenance/index.vue b/src/container/maintenance/index.vue index f5ca8ba..5454590 100644 --- a/src/container/maintenance/index.vue +++ b/src/container/maintenance/index.vue @@ -1,13 +1,13 @@ <!-- * @Date: 2024-01-06 17:40:19 * @LastEditors: Sneed - * @LastEditTime: 2024-01-30 21:05:16 + * @LastEditTime: 2024-02-03 23:27:34 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/maintenance/index.vue --> <template> <div class="maintenance"> <Nav :name="`璁惧淇濆吇 / ${navName}`"></Nav> - <List ref="list" url="/maintain/pageQuery"> + <List ref="list" url="/maintain/pageQuery" :data="{style: $route.params.style - 1}"> <template slot="search"> <div class="item"> <span>缁熶竴缂栧彿</span> @@ -137,9 +137,15 @@ }, }, watch: { - $route () { - this.queryInfo.style = this.$route.params.style - this.query() + $route: { + handler () { + this.queryInfo.style = this.$route.params.style + this.$nextTick(() => { + this.$refs.list && this.query() + }) + + }, + immediate: true } }, data() { @@ -163,7 +169,7 @@ }, mounted() { this.init() - this.query() + // this.query() }, methods: { init () { -- Gitblit v1.9.3