MCPcopy Create free account
hub / github.com/CoderOpen/waimai / getTokenStorage

Function getTokenStorage

front/common/service.js:2–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import Request from '@/utils/luch-request/index.js'
2const getTokenStorage = () => {
3 let token = ''
4 try{
5 token = uni.getStorageSync('token')
6 }catch(e){
7 //TODO handle the exception
8 }
9 return token
10}
11const http = new Request()
12http.setConfig((config) => { /* 设置全局配置 */
13 config.baseUrl = '/api/chiheyouhui' /*根域名不同 */

Callers 1

service.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected