| src/permission.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/store/modules/app.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/store/modules/user.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/utils/request.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/scgl/sckbg.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/permission.js
@@ -19,7 +19,7 @@ // determine whether the user has logged in // const hasToken = getToken() const hasToken = store.state.app.isGoToIndex const hasToken = getCookie('admin') if (hasToken) { if (to.path === '/login') { // if is logged in, redirect to the home page src/store/modules/app.js
@@ -6,8 +6,7 @@ withoutAnimation: false }, device: 'desktop', buttonIsDisabled: false, // 自定义全局变量参数 控制按钮提交时disabled isGoToIndex: false // 自定义全局变量参数 是否进入到系统首页 buttonIsDisabled: false // 自定义全局变量参数 控制按钮提交时disabled } const mutations = { @@ -45,7 +44,6 @@ export default { namespaced: true, buttonIsDisabled: false, isGoToIndex: false, state, mutations, actions src/store/modules/user.js
@@ -54,7 +54,6 @@ // if (res.code === '302') { setCookie('code', res.code) // } store.state.app.isGoToIndex = true // commit('SET_TOKEN', data.token) // setToken(res) @@ -118,7 +117,6 @@ logout(data).then(res => { if (res.code === '200') { store.state.app.isGoToIndex = false removeToken() // must remove token first resetRouter() src/utils/request.js
@@ -68,7 +68,6 @@ removeCookie('rediskey') removeCookie('guid') removeCookie('code') store.state.app.isGoToIndex = false setTimeout(() => { sessionStorage.removeItem('tabViews') window.location.reload() src/views/scgl/sckbg.vue
@@ -1388,7 +1388,7 @@ this.getHeight() this.$nextTick(() => { $("input[name='produceCode']")[0].focus() $('input[name=\'produceCode\']')[0].focus() // this.bindQRCode('10001;001') }) // webapp_urlprotocol_startup() @@ -1466,21 +1466,21 @@ if (this.$refs.elTabs.currentName === '0') { this.$nextTick(() => { this.getMesOrderStepSearch() $("input[name='produceCode']")[0].focus() $('input[name=\'produceCode\']')[0].focus() this.WXform.orderstepqrcode = '' }) } if (this.$refs.elTabs.currentName === '1') { this.$nextTick(() => { this.getMesOrderWxStepSearch() $("input[name='WXproduceCode']")[0].focus() $('input[name=\'WXproduceCode\']')[0].focus() this.form.orderstepqrcode = '' }) } if (this.$refs.elTabs.currentName === '2') { this.$nextTick(() => { this.getBadList() $("input[name='badProduceCode']")[0].focus() $('input[name=\'badProduceCode\']')[0].focus() this.badForm.orderstepqrcode = '' }) }