build(projects): 增加代码规范
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
// 用于配置项目的一些常量,如接口地址、websocket地址等
|
||||
import Taro from "@tarojs/taro";
|
||||
import Taro from '@tarojs/taro'
|
||||
|
||||
export const app = {
|
||||
API_URL: () => `${process.env.TARO_APP_API}`,
|
||||
API_WS: () =>
|
||||
`${process.env.TARO_APP_WS}?uid=${Taro.getStorageSync("uid")}&game_id=${
|
||||
Taro.getStorageSync("gameItem").ID
|
||||
`${process.env.TARO_APP_WS}?uid=${Taro.getStorageSync('uid')}&game_id=${
|
||||
Taro.getStorageSync('gameItem').ID
|
||||
}`,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user