@xingtukeji/micro 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -32,12 +32,8 @@ import {microInit} from '@xingtukeji/micro'
32
32
  microInit({
33
33
  // 处理 token,该方法建议同步执行完成,如果有异步处理(比如 http 请求)请后续页面初始化时,判断 token 是否准备完毕。
34
34
  authHandler: (token: string)=>{
35
- return new Promise((resolve,_reject)=>{
36
- setTimeout(()=>{
37
- console.log('authHandler',token)
38
- resolve(token)
39
- }, 1000)
40
- })
35
+ window.localStorage.setItem('token', token)
36
+ //or pinia store set token
41
37
  },
42
38
  //简易处理微应用环境下,隐藏 header
43
39
  hideHeaderCssSelector: '#app ._hedaui-header'