xjc 4 年之前
父節點
當前提交
4f1fd9ee36
共有 3 個文件被更改,包括 8 次插入5 次删除
  1. 2 2
      src/views/Home.vue
  2. 4 1
      src/views/message/modelForm.vue
  3. 2 2
      vue.config.js

+ 2 - 2
src/views/Home.vue

@@ -10,8 +10,8 @@
 	<el-container>
 		<el-header>
 			<div class="header">
-				<!-- <img class="logo" src="../assets/logo.png" alt=""> -->
-				<!-- <div class="siteTitle">中科院期刊微信公众号集中管理平台</div> -->
+				<img class="logo" src="../assets/logo.png" alt="">
+				<div class="siteTitle">中科院期刊微信公众号集中管理平台</div>
 			</div>	
 			<div class="nav">
 				<!-- <router-link :class="act?'active':''" to="/index/index" @click.native='active(1)'>首页</router-link>

+ 4 - 1
src/views/message/modelForm.vue

@@ -1264,8 +1264,11 @@ export default {
     end(evt) {},
     upload() {},
     imgchange(file, fileList) {
-      console.log(fileList);
       var img = this.noteImgs;
+      if(img.length>8){
+        this.$message.error("最多只能上传9张图片!");
+        return 
+      }
       img.push(fileList.response.data);
       this.noteImgs = img;
     },

+ 2 - 2
vue.config.js

@@ -2,8 +2,8 @@ module.exports={
     devServer:{
         proxy:{
             '/api':{
-                // target:'http://39.107.246.59:81',
-                target:'https://test.scxjc.club',
+                target:'http://39.107.246.59:81',
+                // target:'https://test.scxjc.club',
                 // target:'http://caos.tederen.com',
                 changeOrigin: true,
             }