Browse Source

测试

master
主管理员 2 months ago
parent
commit
f9b8be7170
4 changed files with 7 additions and 7 deletions
  1. +2
    -2
      config.js
  2. +1
    -1
      manifest.json
  3. +1
    -1
      store/modules/user.js
  4. +3
    -3
      utils/getUrl.js

+ 2
- 2
config.js View File

@ -2,8 +2,8 @@
module.exports = {
// baseUrl: 'https://api.catmdogd.com/prod-api',
// baseUrl: 'https://api-test.catmdogd.com/test-api',
// baseUrl: 'https://pet-admin.hhlm1688.com/api',
baseUrl: 'http://h5.xzaiyp.top',
baseUrl: 'https://pet-admin.hhlm1688.com/api',
// baseUrl: 'http://h5.xzaiyp.top',
// 应用信息
appInfo: {
// 应用名称


+ 1
- 1
manifest.json View File

@ -1,6 +1,6 @@
{
"name" : "CMDF",
"appid" : "__UNI__A764ECB",
"appid" : "__UNI__6B015BD",
"description" : "猫妈狗爸",
"versionName" : "1.1.0",
"versionCode" : "100",


+ 1
- 1
store/modules/user.js View File

@ -74,7 +74,7 @@ const user = {
getInfo().then(res => {
const user = res.user
const avatar = (user == null || user.avatar == "" || user.avatar == null) ?
require("@/static/images/profile.jpg") : baseUrl + user.avatar
"": baseUrl + user.avatar
const username = (user == null || user.userName == "" || user.userName ==
null) ? "" : user.userName
if (res.roles && res.roles.length > 0) {


+ 3
- 3
utils/getUrl.js View File

@ -5,10 +5,10 @@ current = accountInfo.miniProgram.envVersion;
const api={
develop:"http://h5.xzaiyp.top",
develop:"https://pet-admin.hhlm1688.com/api",
// develop:"https://api-test.catmdogd.com/test-api",
trial:"https://api-test.catmdogd.com/test-api",
release:"https://api.catmdogd.com/prod-api",
trial:"https://pet-admin.hhlm1688.com/api",
release:"https://pet-admin.hhlm1688.com/api",
}
const currentUrl = api[current];

Loading…
Cancel
Save