1
0
forked from dyf/APP

670完成

This commit is contained in:
liub
2025-08-26 15:42:26 +08:00
parent c9996748eb
commit dfb6f29683
22 changed files with 767 additions and 1046 deletions

25
App.vue
View File

@ -5,8 +5,31 @@
export default {
onLaunch: function() {
var ble = bleTool.getBleTool();
//以下代码仅在开发时使用,否则会出现不可预知的问题。
// uni.clearStorageSync();
var ble = bleTool.getBleTool();
// let store=uni.getStorageInfoSync();
// store.keys.forEach((val,index,array)=>{
// if(val=="tokenTime"){
// let time=uni.getStorageSync(val);
// if(!time){
// time=0;
// }
// let currTime=new Date().getTime();
// if(currTime>=time){
// uni.removeStorageSync(val);
// uni.removeStorageSync("token");
// uni.removeStorageSync("clientID");
// }
// }
// else if(val=="token" || val=="clientID"){
// console.log("忽略登陆信息");
// }else{
// uni.removeStorageSync(val);
// }
// });
},
onShow: function() {
console.log('App Show');