File tree Expand file tree Collapse file tree 6 files changed +9
-12
lines changed
Expand file tree Collapse file tree 6 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 2929</template >
3030<script >
3131import listBody from ' ./body.vue' ;
32- import vueScroll from ' ./vuescroll/vuescroll-native.js' ;
32+ const vueScroll = require ( ' ./vuescroll/vuescroll-native.js' ) ;
3333export default {
3434 components: {
3535 vueScroll,
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ export default {
180180 },
181181};
182182 </script >
183- <style lang="sass " src="./index.scss "></style >
183+ <style lang="scss " src="./index.scss "></style >
184184<style >
185185.list-view {
186186width : 100% ;
Original file line number Diff line number Diff line change 2727 v-model =" searchBar.proxyUser"
2828 placeholder =" 请输入用户名搜索"
2929 style =" width :120px ;"
30- :readonly =" isLogModuleShow" ></ Input >
30+ :readonly =" isLogModuleShow" / >
3131 </FormItem >
3232 <Divider
3333 type =" vertical"
@@ -148,14 +148,13 @@ import log from './log.vue';
148148import Module from ' ./index' ;
149149import api from ' @/js/service/api' ;
150150import util from ' @/js/util' ;
151- import envMixin from ' @js/service/mixin' ;
152151export default {
153152 name: ' GlobalHistory' ,
154153 components: {
155154 historyTable: table .historyTable ,
156155 log,
157156 },
158- mixins: [Module .mixin , envMixin ],
157+ mixins: [Module .mixin ],
159158 data () {
160159 return {
161160 list: [],
Original file line number Diff line number Diff line change 1- import Vue from 'vue' ;
21import storage from '@/js/helper/storage' ;
32
4- Vue . mixin ( {
3+ export default {
54 data : function ( ) {
65 return {
76 SUPPORTED_LANG_MODES : Object . freeze ( [
@@ -49,6 +48,4 @@ Vue.mixin({
4948 return ! ! findRole ;
5049 } ,
5150 } ,
52- } ) ;
53-
54- // 注入自己的对象
51+ } ;
Original file line number Diff line number Diff line change 4646 <we-panel-item
4747 :index =" 2"
4848 class =" center-panel" >
49- <template scope="props">
49+ <template slot- scope="props">
5050 <workbench
5151 :width =" props.width"
5252 v-if =" props.width" />
Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ import VueRouter from 'vue-router'
55import App from './js/view/app.vue'
66import router from './js/service/router'
77import './js/module'
8- import './js/service/mixin'
98import component from './js/component'
9+ import mixin from '../src/js/service/mixin'
1010
1111Vue . config . productionTip = false
1212
1313Vue . use ( iView )
1414Vue . use ( VueRouter )
1515Vue . use ( component )
16+ Vue . mixin ( mixin ) ;
1617
1718new Vue ( {
1819 router,
You can’t perform that action at this time.
0 commit comments