Przeglądaj źródła

Merge branch 'master' of http://192.168.4.246:3000/zhangs/surveyMaker

曹冬冬 5 lat temu
rodzic
commit
64c0689b7e
3 zmienionych plików z 5 dodań i 7 usunięć
  1. 2 5
      build/utils.js
  2. 2 2
      src/components/PreView.vue
  3. 1 0
      src/util/appConst.js

+ 2 - 5
build/utils.js

@@ -28,12 +28,9 @@ exports.cssLoaders = function (options) {
     // Extract CSS when that option is specified
     // (which is the case during production build)
     if (options.extract) {
-      return ExtractTextPlugin.extract({
-        use: sourceLoader,
-        fallback: 'vue-style-loader',
-        publicPath:'../../'
+      return ExtractTextPlugin.extract('vue-style-loader', sourceLoader,{
+        publicPath: "../../"
       })
-      // return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
     } else {
       return ['vue-style-loader', sourceLoader].join('!')
     }

+ 2 - 2
src/components/PreView.vue

@@ -149,7 +149,7 @@ export default {
   data () {
     return {
       // releaseUrl: appConst.BACKEND_DOMAIN + '/pages/' + this.itemId + '.html',
-      releaseUrl: appConst.TOUFANGBAO_PATH + this.itemId,
+      releaseUrl: appConst.DIAOYANBAO_PATH + this.itemId,
       title: this.$store.state.editor.editorTheme.title || '',
       description: this.$store.state.editor.editorTheme.description || '',
       qrcodeSize: 500
@@ -162,7 +162,7 @@ export default {
         console.log(err)
       })
       // let openUrl = 'http://' + window.location.host + '/#/h5editor?itemId=' + this.itemId
-      let openUrl = appConst.TOUFANGBAO_PATH + this.itemId
+      let openUrl = appConst.DIAOYANBAO_PATH + this.itemId
       window.open(openUrl)
     },
     downQRcode () {

+ 1 - 0
src/util/appConst.js

@@ -1,3 +1,4 @@
+
 console.log('process.env.NODE_ENV' + process.env.NODE_ENV)
 let BACKEND_DOMAIN = '';
 let QINIU_DOMAIN = 'https://dm-api.elab-plus.cn';