build(projects): 增加代码规范

This commit is contained in:
2023-11-03 18:17:27 +08:00
parent 9a0b0505e9
commit 5e64ea27de
38 changed files with 14545 additions and 11926 deletions

View File

@@ -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
}`,
};
}