Browse Source

下载场景码后刷新列表

James 4 years ago
parent
commit
5c0aadf528
2 changed files with 4 additions and 2 deletions
  1. 1 1
      package.json
  2. 3 1
      src/pages/list/index.vue

+ 1 - 1
package.json

@@ -5,7 +5,7 @@
   "author": "zhibin <854556519@qq.com>",
   "author": "zhibin <854556519@qq.com>",
   "private": true,
   "private": true,
   "scripts": {
   "scripts": {
-    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
+    "dev": "webpack-dev-server --inline --progress --host 0.0.0.0 --config build/webpack.dev.conf.js",
     "start": "npm run dev",
     "start": "npm run dev",
     "unit": "jest --config test/unit/jest.conf.js --coverage",
     "unit": "jest --config test/unit/jest.conf.js --coverage",
     "e2e": "node test/e2e/runner.js",
     "e2e": "node test/e2e/runner.js",

+ 3 - 1
src/pages/list/index.vue

@@ -285,15 +285,17 @@ export default {
       });
       });
     },
     },
     sceneCodeSendHttp() {
     sceneCodeSendHttp() {
-      let { sceneCode, description } = this.form;
+      let { sceneCode, description,sceneTitle } = this.form;
       let body = {
       let body = {
         description,
         description,
         sceneCode,
         sceneCode,
+        sceneTitle
       };
       };
       this.$http.post("/manage/scene/download", body).then((res) => {
       this.$http.post("/manage/scene/download", body).then((res) => {
         this.$message(res["msg"]);
         this.$message(res["msg"]);
         if (res["code"] === 0) {
         if (res["code"] === 0) {
           console.log("下载成功");
           console.log("下载成功");
+          this.getScenes()
           this.dialogFormVisible = false;
           this.dialogFormVisible = false;
         } else {
         } else {
         }
         }