From b734e6745f4db43ba92d05c9ba0a8ebae455df14 Mon Sep 17 00:00:00 2001 From: wangqiujuan0808 <578331299@qq.com> Date: Tue, 26 Dec 2023 11:47:03 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AddRule.vue | 13 ++++++++----- src/views/Rules.vue | 6 +++--- vite.config.js | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/components/AddRule.vue b/src/components/AddRule.vue index 5fa64d6..6b96312 100644 --- a/src/components/AddRule.vue +++ b/src/components/AddRule.vue @@ -11,9 +11,9 @@ :rules="rules" ref="ruleFormRef" > - + { - // state.addForm = props.formData; + state.addForm = props.formData; }); const closeDialog = () => { diff --git a/src/views/Rules.vue b/src/views/Rules.vue index 1c5a302..73c7601 100644 --- a/src/views/Rules.vue +++ b/src/views/Rules.vue @@ -97,8 +97,8 @@ export default { if (ret.code == 0) { // 获取数据 - state.tableData = rule_info.decode(ret.data); - console.log(rule_info.decode(ret.data)); + // state.tableData = rule_info.decode(ret.data); + // console.log(rule_info.decode(ret.data)); } else { console.log(res); } @@ -138,13 +138,13 @@ export default { }; // 新增 const addData = () => { - state.dialogVisible = true; //清空数据 state.formData = { title: '', description: '' } state.type = 'I'; + state.dialogVisible = true; }; // 启用停用 const changeStatus = async (item) => { diff --git a/vite.config.js b/vite.config.js index 0dbeec6..14c1a67 100644 --- a/vite.config.js +++ b/vite.config.js @@ -24,7 +24,7 @@ export default ({ mode }) => defineConfig({ server: { proxy: { '/api': { - target: 'http://api.shikicc.com:58909', + target: 'http://frp.shikicc.com:58951', // target: 'http://10.10.14.123', // target: 'https://cdcmapi.shikicc.com', changeOrigin: true,