Commit e7b17c79 authored by hanfeng zhang's avatar hanfeng zhang

321

parent b37819af
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
"secp256k1": "^4.0.2", "secp256k1": "^4.0.2",
"validator": "^13.6.0", "validator": "^13.6.0",
"vant": "^2.12.22", "vant": "^2.12.22",
"vconsole": "^3.9.1",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-fragment": "^1.5.2", "vue-fragment": "^1.5.2",
"vue-router": "^3.2.0", "vue-router": "^3.2.0",
......
...@@ -9,6 +9,10 @@ import utils from '@/util' ...@@ -9,6 +9,10 @@ import utils from '@/util'
import service from './service' import service from './service'
import dsbridge from 'dsbridge' import dsbridge from 'dsbridge'
import { Dialog, Toast, Notify }from 'vant' import { Dialog, Toast, Notify }from 'vant'
// import Vconsole from 'vconsole'
// const VConsole = new Vconsole()
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.use(Dialog).use(Toast).use(Notify) Vue.use(Dialog).use(Toast).use(Notify)
......
...@@ -38,7 +38,7 @@ export default class BaseService { ...@@ -38,7 +38,7 @@ export default class BaseService {
let token; let token;
let headerItems:{[key:string]:string|number} ={} let headerItems:{[key:string]:string|number} ={}
if(!routerConfig.method) routerConfig.method = 'post' if(!routerConfig.method) routerConfig.method = 'post'
if(routerConfig.crediential) token = signAuth() || 'MOCK' if(routerConfig.crediential) token = 'MOCK'
switch(routerConfig.method){ switch(routerConfig.method){
case 'post': case 'post':
routerConfig.crediential&&Object.assign(headerItems,{'FZM-SIGNATURE':token}) routerConfig.crediential&&Object.assign(headerItems,{'FZM-SIGNATURE':token})
......
...@@ -87,6 +87,8 @@ export default Vue.extend({ ...@@ -87,6 +87,8 @@ export default Vue.extend({
this.showRadio = this.$route.query.showRadio === '1' this.showRadio = this.$route.query.showRadio === '1'
}, },
mounted(){ mounted(){
// console.log(window.navigator);
useLocalStorageState('USER_INFO',getUserInfo()) useLocalStorageState('USER_INFO',getUserInfo())
// this.$service.enterprise.getEnterpriseInfo({ // this.$service.enterprise.getEnterpriseInfo({
// id: '166910771849072640' // id: '166910771849072640'
......
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