bug
This commit is contained in:
@@ -18,6 +18,7 @@ dayjs.extend(relativeTime)
|
|||||||
Vue.prototype.$dayjs = dayjs
|
Vue.prototype.$dayjs = dayjs
|
||||||
|
|
||||||
Object.keys(utils).forEach(v => Vue.prototype[`$${v}`] = utils[v])
|
Object.keys(utils).forEach(v => Vue.prototype[`$${v}`] = utils[v])
|
||||||
|
|
||||||
Vue.prototype.$http = instance
|
Vue.prototype.$http = instance
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
|
|||||||
@@ -91,15 +91,15 @@ const dateUtil = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const userCheck = () => {
|
const userCheck = () => {
|
||||||
store.dispatch('getUserInfo').then(res => {
|
return new Promise((resolve, reject) => {
|
||||||
return new Promise((resolve, reject) => {
|
store.dispatch('getUserInfo').then(res => {
|
||||||
if (res.data.flag != 1) {
|
if (res.flag != 1) {
|
||||||
Message.error('您的账号未激活或已失效,请激活后使用')
|
Message.error('您的账号未激活或已失效,请激活后使用')
|
||||||
this.$store.commit('setActiveDlgShow', true)
|
store.commit('setActiveDlgShow', true)
|
||||||
reject('您的账号未激活或已失效,请激活后使用')
|
reject('您的账号未激活或已失效,请激活后使用')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (res.data.type != 4 && this.$store.state.mallId != this.$store.state.userInfo.mallId) {
|
if (res.type != 4 && store.state.mallId != store.state.userInfo.mallId) {
|
||||||
Message.error('您当前登录的TEMU账号与会员绑定账号不一致')
|
Message.error('您当前登录的TEMU账号与会员绑定账号不一致')
|
||||||
reject('您当前登录的TEMU账号与会员绑定账号不一致')
|
reject('您当前登录的TEMU账号与会员绑定账号不一致')
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -280,7 +280,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$userCheck.then(() => {
|
this.$userCheck().then(() => {
|
||||||
if (this.choosedList.length <= 0) {
|
if (this.choosedList.length <= 0) {
|
||||||
Message.error('请选择备货单');
|
Message.error('请选择备货单');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user