添加注解
This commit is contained in:
parent
0ce64810e4
commit
9f8f08082f
@ -6,7 +6,6 @@
|
|||||||
<keep-alive>
|
<keep-alive>
|
||||||
<router-view class="main"/>
|
<router-view class="main"/>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
|
|
||||||
<div @dblclick="handleShowVcnsole" class="baaa" style="width:20px;height:20px;"></div>
|
<div @dblclick="handleShowVcnsole" class="baaa" style="width:20px;height:20px;"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -52,6 +51,7 @@ export default {
|
|||||||
this.dd = dd
|
this.dd = dd
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 在钉钉环境双击显示 vconsole
|
||||||
handleShowVcnsole () {
|
handleShowVcnsole () {
|
||||||
var vConsole = new VConsole({
|
var vConsole = new VConsole({
|
||||||
vConsole_switch_x: 0,
|
vConsole_switch_x: 0,
|
||||||
|
|||||||
@ -5,6 +5,7 @@ let mixin = {
|
|||||||
return {}
|
return {}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
// auth全局权限 在登录成功后获取
|
||||||
...mapGetters(['auth'])
|
...mapGetters(['auth'])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -114,16 +114,17 @@ const opt = {
|
|||||||
background: 'rgba(255, 255, 255, 0.8)',
|
background: 'rgba(255, 255, 255, 0.8)',
|
||||||
spinner: 'el-icon-loading',
|
spinner: 'el-icon-loading',
|
||||||
text: '数据加载中'}
|
text: '数据加载中'}
|
||||||
|
// loading开启
|
||||||
export function loading (options = opt) {
|
export function loading (options = opt) {
|
||||||
this.$loading.service(options)
|
this.$loading.service(options)
|
||||||
}
|
}
|
||||||
|
// loading 关闭
|
||||||
export function loadingClose () {
|
export function loadingClose () {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$loading.service(opt).close()
|
this.$loading.service(opt).close()
|
||||||
}, 100)
|
}, 100)
|
||||||
}
|
}
|
||||||
|
// 通过 url 获取参数
|
||||||
export function getUrlParams () {
|
export function getUrlParams () {
|
||||||
var query = decodeURI(window.location.search.substring(1))
|
var query = decodeURI(window.location.search.substring(1))
|
||||||
console.log('query: ', query)
|
console.log('query: ', query)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user