Commit 835621d6 authored by hanfeng zhang's avatar hanfeng zhang

321

parent 7905c1fa
......@@ -38,7 +38,7 @@ export default class BaseService {
let token;
let headerItems:{[key:string]:string|number} ={}
if(!routerConfig.method) routerConfig.method = 'post'
if(routerConfig.crediential) token = process.env.NODE_ENV !== 'production'?signAuth(): "MOCK"
if(routerConfig.crediential) token = process.env.NODE_ENV === 'production'?signAuth(): "MOCK"
switch(routerConfig.method){
case 'post':
routerConfig.crediential&&Object.assign(headerItems,{'FZM-SIGNATURE':token})
......
......@@ -75,7 +75,7 @@ export default Vue.extend({
this.joinInfo = this.$store.state.acceptJoin || {}
console.log(this.joinInfo, 'joinIndo')
this.qrCodeText = JSON.stringify(this.joinInfo)
let url = 'http://192.168.20.138:8080/team/confirm-join'
let url = window.location.origin + '/team/confirm-join'
// for(const key in this.joinInfo) {
// url = `${url}?${key}=${this.joinInfo[key]}`
// }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment