From 0a2a804ca828e8f930e68d6cf6d66c2f5f08f822 Mon Sep 17 00:00:00 2001
From: clay <20932067@zju.edu.cn>
Date: Fri, 25 Nov 2022 22:06:40 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=90=8E=E4=B8=80=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ebts-ui/src/views/system/notice/index.vue | 41 ++++++++++++-----------
ebts-ui/vue.config.js | 26 +++++++-------
2 files changed, 34 insertions(+), 33 deletions(-)
diff --git a/ebts-ui/src/views/system/notice/index.vue b/ebts-ui/src/views/system/notice/index.vue
index f65253a..8adf8b9 100644
--- a/ebts-ui/src/views/system/notice/index.vue
+++ b/ebts-ui/src/views/system/notice/index.vue
@@ -10,15 +10,15 @@
@keyup.enter.native="handleQuery"
/>
-
-
-
+
+
+
+
+
+
+
+
+
@@ -149,17 +149,17 @@
-
-
-
- {{dict.dictLabel}}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -308,6 +308,7 @@ export default {
submitForm: function() {
this.$refs["form"].validate(valid => {
this.form.noticeType = "1"
+ this.form.status = "0"
if (valid) {
if (this.form.noticeId != undefined) {
updateNotice(this.form).then(response => {
diff --git a/ebts-ui/vue.config.js b/ebts-ui/vue.config.js
index d596410..29592a4 100644
--- a/ebts-ui/vue.config.js
+++ b/ebts-ui/vue.config.js
@@ -32,19 +32,19 @@ module.exports = {
// host: '0.0.0.0',
// // port: port,
port: 8080,
- // open: true,
- // proxy: {
- // // detail: https://cli.vuejs.org/config/#devserver-proxy
- // [process.env.VUE_APP_BASE_API]: {
- // target: `http://localhost:8085`,
- // // target: `http://hchyunapi.tomey.live`,
- // changeOrigin: true,
- // pathRewrite: {
- // ['^' + process.env.VUE_APP_BASE_API]: ''
- // }
- // }
- // },
- // disableHostCheck: true
+ open: true,
+ proxy: {
+ // detail: https://cli.vuejs.org/config/#devserver-proxy
+ [process.env.VUE_APP_BASE_API]: {
+ target: `https://sist.swjtu.edu.cn/`,
+ // target: `http://hchyunapi.tomey.live`,
+ changeOrigin: true,
+ pathRewrite: {
+ ['^' + process.env.VUE_APP_BASE_API]: '/dev-api'
+ }
+ }
+ },
+ disableHostCheck: true
},
// 强制内联CSS
// 默认true: 使用CSS分离插件 ExtractTextPlugin,采用独立样式文件载入,不采用