fix: 个人主页修改

This commit is contained in:
kaizheng(郑凯) 2025-02-28 15:37:07 +08:00
parent be96abbeda
commit 921da3ec31
3 changed files with 13 additions and 5 deletions

View File

@ -72,7 +72,7 @@ module.exports = {
} }
], ],
"handle-callback-err": [2, "^(err|error)$"], "handle-callback-err": [2, "^(err|error)$"],
indent: off, indent: "off",
"jsx-quotes": [2, "prefer-single"], "jsx-quotes": [2, "prefer-single"],
"key-spacing": [ "key-spacing": [
2, 2,

View File

@ -170,3 +170,12 @@ export function getListCustomer(data) {
data data
}); });
} }
// 设置首页参数
export function setMainPageParam(data) {
return request({
url: "/admin/group/info/setMainPageParam",
method: "post",
data
});
}

View File

@ -65,7 +65,7 @@
width="300" width="300"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button <el-button
v-if="!scope.row.isRecommend" v-if="!scope.row.isRecommend"
type="text" type="text"
@click="recommend(scope.row)" @click="recommend(scope.row)"
@ -76,7 +76,7 @@
type="text" type="text"
@click="editWeight(scope.row)" @click="editWeight(scope.row)"
>取消权重</el-button >取消权重</el-button
> --> >
<el-button <el-button
v-if="scope.row.isDisplay === 1" v-if="scope.row.isDisplay === 1"
type="text" type="text"
@ -126,8 +126,7 @@
</div> </div>
</template> </template>
<script> <script>
import { setMainPageParam } from "@/api/course.js"; import { getCircleList, setMainPageParam } from "@/api/circle.js";
import { getCircleList } from "@/api/circle.js";
export default { export default {
name: "CourseTab", name: "CourseTab",
props: { props: {