吉安感知网项目-前端
chenyao
2026-01-08 e0afc7aeb6b1445a8cc9dddf3e37de1ce0ecd0c7
feat:更新小程序
3 files modified
11 ■■■■■ changed files
uniapps/work-wx/src/api/user/index.js 6 ●●●●● patch | view | raw | blame | history
uniapps/work-wx/src/config/env.js 2 ●●● patch | view | raw | blame | history
uniapps/work-wx/src/pages/login/index.vue 3 ●●●● patch | view | raw | blame | history
uniapps/work-wx/src/api/user/index.js
@@ -26,7 +26,7 @@
// 用户登录接口
export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) => {
  return request({
    url: '/blade-auth/oauth/token',
    url: '/auth/login',
    method: 'post',
    header: {
      'Tenant-Id': tenantId,
@@ -35,10 +35,12 @@
      'Captcha-Key': key,
      'Captcha-Code': code,
    },
    params: {
    data: {
      tenantId,
      username,
      password,
      checkCode:'',
      mobile: false,
      grant_type: 'password',
      scope: 'all',
      type,
uniapps/work-wx/src/config/env.js
@@ -14,7 +14,7 @@
  // 开发环境这里改为自己的
  VITE_APP_WEBVIEW_URL: 'https://wrj.shuixiongit.com/drone-app-web-view/#/webViewWrapper',
  // VITE_APP_WEBVIEW_URL: 'http://localhost:5173/drone-app-web-view/#/webViewWrapper',
  VITE_API_BASE_URL: 'https://wrj.shuixiongit.com/api',
  VITE_API_BASE_URL: 'http://218.202.104.82:8200',
  // VITE_API_BASE_URL: 'https://aisky.org.cn/api',
  VITE_APP_WS_API_URL:'wss://wrj.shuixiongit.com/drone-wss/api/v1/ws',
  
uniapps/work-wx/src/pages/login/index.vue
@@ -123,7 +123,8 @@
      userInfo.deptId,
      userInfo.roleId,
      userInfo.username,
      md5(userInfo.password),
      // md5(userInfo.password),
      userInfo.password,
      userInfo.type,
      userInfo.key,
      userInfo.code