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