luyanan vor 6 Jahren
Ursprung
Commit
e328290026

+ 0 - 3
build/webpack.base.conf.js

@ -19,9 +19,6 @@ const createLintingRule = () => ({
19 19
  }
20 20
})
21 21
22
//过滤自己本地的文件  
23
nodeModules['./static/plat-info.js'] = 'commonjs ./static/plat-info.js'; 
24
25 22
module.exports = {
26 23
  context: path.resolve(__dirname, '../'),
27 24
  entry: {

+ 1 - 1
src/components/Main.vue

@ -15,7 +15,6 @@
15 15
<script type="text/ecmascript-6">
16 16
  import TheHeader from './main-views/TheHeader.vue';
17 17
  import TheFooter from './main-views/TheFooter.vue';
18
  import PLAT from '../../static/plat-info';
19 18
20 19
  export default {
21 20
    data() {
@ -24,6 +23,7 @@
24 23
      };
25 24
    },
26 25
    mounted() {
26
      /* eslint-disable no-undef */
27 27
      this.plat = PLAT.info;
28 28
    },
29 29
    components: {

+ 1 - 1
src/components/bench-views/WorkCommon.vue

@ -15,7 +15,6 @@
15 15
<script type="text/ecmascript-6">
16 16
  import TheHeader from './WorkHead.vue';
17 17
  import TheFooter from '../main-views/TheFooter.vue';
18
  import PLAT from '../../../static/plat-info';
19 18

20 19
  export default {
21 20
    data() {
@ -24,6 +23,7 @@
24 23
      };
25 24
    },
26 25
    mounted() {
26
      /* eslint-disable no-undef */
27 27
      this.plat = PLAT.info;
28 28
    },
29 29
    components: {

+ 1 - 1
src/components/main-views/TheFooter.vue

@ -32,7 +32,6 @@
32 32
<script type="text/javascript">
33 33
  import Cookies from 'js-cookie';
34 34
  import util from '@/libs/util';
35
  import PLAT from '../../../static/plat-info';
36 35
37 36
  export default {
38 37
    data() {
@ -55,6 +54,7 @@
55 54
      }
56 55
    },
57 56
    mounted () {
57
      /* eslint-disable no-undef */
58 58
      this.plat = PLAT.info;
59 59
      this.init();
60 60
    }

+ 1 - 1
src/components/main-views/TheHeader.vue

@ -33,7 +33,6 @@
33 33
34 34
<script type="text/javascript">
35 35
  import util from '@/libs/util';
36
  import PLAT from '../../../static/plat-info';
37 36
38 37
  export default {
39 38
    data() {
@ -43,6 +42,7 @@
43 42
      };
44 43
    },
45 44
    mounted() {
45
      /* eslint-disable no-undef */
46 46
      this.plat = PLAT.info;
47 47
    }
48 48
  };

+ 3 - 1
src/main.js

@ -16,7 +16,7 @@ import '../static/ueditor/lang/zh-cn/zh-cn.js';
16 16
import '../static/ueditor/ueditor.parse.js';
17 17
18 18
import Cookies from 'js-cookie';
19
import PLAT from '../static/plat-info';
19
import '../static/plat-info';
20 20
21 21
Vue.use(axiosH);
22 22
Vue.use(ElementUI);
@ -25,6 +25,8 @@ Vue.use(BackTop);
25 25
Vue.use(defaultPage);
26 26
Vue.use(CityPick);
27 27
28
var PLAT = global.PLAT;
29
28 30
/* eslint-disable no-new */
29 31
new Vue({
30 32
  el: '#app',

+ 2 - 1
static/plat-info.js

@ -23,4 +23,5 @@ PLAT.info = {
23 23
  ]
24 24
};
25 25
26
export default PLAT;
26
global.PLAT = PLAT;
27
// export default PLAT;