Commit f2b6419d by 张立顺

feat sessionid 添加

1 parent 6389984a
...@@ -230,7 +230,7 @@ export default { ...@@ -230,7 +230,7 @@ export default {
mounted() { mounted() {
this.timeInterval = setInterval(() => this.refreshTime(), 1000) this.timeInterval = setInterval(() => this.refreshTime(), 1000)
this.$event.$on("e-reg-dialog", (res) => (this.registerDialogVisible = res)) this.$event.$on("e-reg-dialog", (res) => (this.registerDialogVisible = res))
this.scrmLogin() // this.scrmLogin()
// this.ssoLogin() // this.ssoLogin()
}, },
beforeDestroy() { beforeDestroy() {
...@@ -301,6 +301,7 @@ export default { ...@@ -301,6 +301,7 @@ export default {
} }
selectAccount(params).then((res) => { selectAccount(params).then((res) => {
util.cookies.set("token", res.sessionId) util.cookies.set("token", res.sessionId)
this.actionSetScrmInfo({ sessionId: res.sessionId, merchantId: +currentItem.merchantNo })
// console.log(currentItem) // console.log(currentItem)
getUserInfo({}) getUserInfo({})
.then((userInfo) => { .then((userInfo) => {
...@@ -376,8 +377,6 @@ export default { ...@@ -376,8 +377,6 @@ export default {
} }
} }
) )
// 账户中心登录
} }
}) })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!