|
|
@@ -108,7 +108,14 @@ const func = async () => {
|
|
108
|
108
|
"font-size:13px; background:pink; color:#bf2c9f;",
|
|
109
|
109
|
paramsData
|
|
110
|
110
|
);
|
|
111
|
|
-
|
|
|
111
|
+ try {
|
|
|
112
|
+ uni.clearStorageSync()
|
|
|
113
|
+ } catch (error) {
|
|
|
114
|
+ uni.removeStorageSync('authorization');
|
|
|
115
|
+ uni.removeStorageSync('userinfo');
|
|
|
116
|
+ uni.removeStorageSync('storeStaff');
|
|
|
117
|
+ uni.removeStorageSync('phpToken')
|
|
|
118
|
+ }
|
|
112
|
119
|
const paramsData1 = {
|
|
113
|
120
|
storeStaff: null,
|
|
114
|
121
|
x_token: "MTYzMzYxODYzMjY4MTA0NTIwMjUtMDEtMDYgYXQgMjI6MDA6MDkgQ1NU",
|
|
|
@@ -142,7 +149,7 @@ const func = async () => {
|
|
142
|
149
|
first_sign: 0
|
|
143
|
150
|
}
|
|
144
|
151
|
};
|
|
145
|
|
-
|
|
|
152
|
+
|
|
146
|
153
|
uni.setStorageSync("userinfo", paramsData.user);
|
|
147
|
154
|
uni.setStorageSync("authorization", paramsData.x_token);
|
|
148
|
155
|
uni.setStorageSync("storeStaff", paramsData.storeStaff);
|