Commit e4979a10 authored by leon's avatar leon

feat: login storage staffNo when is not null

parent 248866a1
...@@ -116,8 +116,10 @@ ...@@ -116,8 +116,10 @@
uni.setStorageSync('authorized', info.authorized); uni.setStorageSync('authorized', info.authorized);
uni.setStorageSync('admin', info.admin); uni.setStorageSync('admin', info.admin);
uni.setStorageSync('show', info.show); uni.setStorageSync('show', info.show);
if(info.staffNo) {
uni.setStorageSync('staffNo', info.staffNo); uni.setStorageSync('staffNo', info.staffNo);
} }
}
}, },
onReady() { onReady() {
......
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