feat: 后端版本迁移修改
This commit is contained in:
@@ -25,7 +25,7 @@ Page({
|
||||
wx.showLoading({ title: '加载中...' });
|
||||
try {
|
||||
// Fetch levels
|
||||
const levelRes = await request.get('/config/level/list');
|
||||
const levelRes = await request.get('/plant/config/level/list');
|
||||
|
||||
|
||||
let list = [];
|
||||
@@ -47,7 +47,7 @@ Page({
|
||||
// Fetch profile if sunlight not passed
|
||||
let currentSunlight = passedSunlight;
|
||||
if (currentSunlight === undefined) {
|
||||
const profileRes = await request.get('/profile/detail');
|
||||
const profileRes = await request.get('/plant/profile/detail');
|
||||
|
||||
currentSunlight = profileRes.totalSunlight || 0;
|
||||
this.setData({ currentSunlight });
|
||||
|
||||
Reference in New Issue
Block a user