Commit 614e27d5 authored by 李俊赕's avatar 李俊赕

app页面token获取修改

parent 9f3437c5
...@@ -130,14 +130,17 @@ ...@@ -130,14 +130,17 @@
this.checkUpdate() this.checkUpdate()
var that=this var that=this
uni.getStorage({ that.globalData.token = util.getToken()
key: 'token', console.log(that.globalData.token,'that.globalData.token')
success: function (res) {
that.globalData.token = res.data
that.initAPIneedToken() that.initAPIneedToken()
// uni.getStorage({
} // key: 'token',
}) // success: function (res) {
// that.globalData.token = res.data
// that.initAPIneedToken()
// }
// })
this.getProtocolContent() this.getProtocolContent()
......
...@@ -98,12 +98,6 @@ ...@@ -98,12 +98,6 @@
this.currentItem = photo.currentItem this.currentItem = photo.currentItem
}, },
computed: { computed: {
// waterSetting() {
// // photo.waterSetting
// const photo = getApp().globalData.photo
// console.log(photo.waterSetting, 'photo.waterSetting')
// return photo.waterSetting || null
// },
titleTxt(){ titleTxt(){
const waterSetting = this.waterSetting const waterSetting = this.waterSetting
let txt = '' let txt = ''
......
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