收藏筛选类目
This commit is contained in:
parent
753c9932aa
commit
18805583c1
|
|
@ -203,8 +203,7 @@ export default {
|
||||||
// 加载一级分类并自动组装其对应的二级分类,兼容 state === 1
|
// 加载一级分类并自动组装其对应的二级分类,兼容 state === 1
|
||||||
async loadFilterCategories() {
|
async loadFilterCategories() {
|
||||||
try {
|
try {
|
||||||
const syrId = uni.getStorageSync('syrId') || 1;
|
const res = await request.post('/sj/firstclass', {})
|
||||||
const res = await request.post('/sj/firstclass', { id: syrId })
|
|
||||||
if ((res.code === 200 || res.state === 1) && res.data) {
|
if ((res.code === 200 || res.state === 1) && res.data) {
|
||||||
const firstClasses = res.data;
|
const firstClasses = res.data;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue