mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-23 23:53:55 +08:00
* update:增加前端设计图 * 前端代码优化 * update:底部信息纠正 * 增加:flyio * update:去除org.quartz * update:登陆功能 * aliyunTTS常联token * 新增aliyunTTS长期Token方式 * 获取用户信息和已绑设备 * update:验证码,登录,注册 * update:去掉依赖错误代码 --------- Co-authored-by: hrz <1710360675@qq.com> Co-authored-by: CGD <3030332422@qq.com> Co-authored-by: Ken <ulxiping@qq.com>
25 lines
503 B
JavaScript
Executable File
25 lines
503 B
JavaScript
Executable File
// 引入各个模块的请求
|
|
import user from './module/user.js'
|
|
|
|
/**
|
|
* 接口地址
|
|
* 在开发阶段,如果地址写的是相对路径,请与vue.config.js的devServer配置相结合,方便跨域请求
|
|
*
|
|
*/
|
|
const DEV_API_SERVICE = 'https://apifoxmock.com/m1/5931378-5618560-default'
|
|
|
|
/**
|
|
* 根据开发环境返回接口url
|
|
* @returns {string}
|
|
*/
|
|
export function getServiceUrl() {
|
|
return DEV_API_SERVICE
|
|
}
|
|
|
|
|
|
/** request服务封装 */
|
|
export default {
|
|
getServiceUrl,
|
|
user,
|
|
}
|