update: 首页分类导航修改第一个导航为推荐,原来是程序写死的"首页"

This commit is contained in:
mixtan 2025-07-21 15:57:06 +08:00
parent 2257caed23
commit 4ecfb6e907
3 changed files with 5 additions and 5 deletions

View File

@ -1232,8 +1232,8 @@ export default {
let tmp = data.items;
tmp.unshift({
id: 0,
category_name: that.__("首页"),
category_alias: that.__("首页"),
category_name: that.__("推荐"),
category_alias: that.__("推荐"),
});
that.setData({

View File

@ -459,8 +459,8 @@ export default {
let tmp = data.items;
tmp.unshift({
id: 0,
category_name: that.__("首页"),
category_alias: that.__("首页"),
category_name: that.__("推荐"),
category_alias: that.__("推荐"),
});
that.setData({

View File

@ -85,7 +85,7 @@
}, */
success(data) {
let tmp = data.items;
tmp.unshift({'id':0, category_name:'首页'});
tmp.unshift({'id':0, category_name:'推荐'});
that.setData({
tabBars: tmp