Skip to content

Commit b46b4b2

Browse files
committed
fix:修复评论回复操作
1 parent deb0f3d commit b46b4b2

File tree

4 files changed

+6
-42
lines changed

4 files changed

+6
-42
lines changed

admin-blog/.env.development

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
ENV = 'development'
33

44
# base api
5-
VUE_APP_BASE_API = 'https://api.boblog.com/api/v1'
6-
5+
VUE_APP_BASE_API = 'http://localhost:5000/api/v1'

admin-blog/src/views/comment/index.vue

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/>
2525
</el-form-item>
2626

27-
<el-form-item label="分类状态" prop="status">
27+
<el-form-item label="评论状态" prop="status">
2828
<el-select
2929
v-model="searchForm.status"
3030
placeholder="请选择状态"
@@ -36,7 +36,7 @@
3636
</el-select>
3737
</el-form-item>
3838

39-
<el-form-item label="分类名称" prop="content">
39+
<el-form-item label="评论名称" prop="content">
4040
<el-input
4141
v-model.trim="searchForm.content"
4242
placeholder="评论内容"
@@ -52,9 +52,6 @@
5252
<el-button type="primary" size="medium" @click="resetSearchData">
5353
重置
5454
</el-button>
55-
<el-button type="primary" size="medium" @click="create">
56-
新增分类
57-
</el-button>
5855
</el-form-item>
5956
</el-form>
6057
</div>
@@ -112,12 +109,6 @@
112109
>
113110
审核不通过
114111
</el-button>
115-
<el-button
116-
size="mini"
117-
type="primary"
118-
@click="handleEdit(scope.row.id)"
119-
>编辑
120-
</el-button>
121112
<el-button
122113
size="mini"
123114
type="danger"
@@ -207,14 +198,6 @@ export default {
207198
this.getComment()
208199
},
209200
methods: {
210-
// 跳转创建分类
211-
create() {
212-
this.$router.push('/category/create')
213-
},
214-
// 跳转编辑分类
215-
handleEdit(id) {
216-
this.$router.push('/comment/edit?id=' + id)
217-
},
218201
// 获取评论列表
219202
async getComment() {
220203
try {

admin-blog/src/views/reply/index.vue

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/>
2525
</el-form-item>
2626

27-
<el-form-item label="分类状态" prop="status">
27+
<el-form-item label="回复状态" prop="status">
2828
<el-select
2929
v-model="searchForm.status"
3030
placeholder="请选择状态"
@@ -36,7 +36,7 @@
3636
</el-select>
3737
</el-form-item>
3838

39-
<el-form-item label="分类名称" prop="content">
39+
<el-form-item label="回复名称" prop="content">
4040
<el-input
4141
v-model.trim="searchForm.content"
4242
placeholder="回复内容"
@@ -52,9 +52,6 @@
5252
<el-button type="primary" size="medium" @click="resetSearchData">
5353
重置
5454
</el-button>
55-
<el-button type="primary" size="medium" @click="create">
56-
新增分类
57-
</el-button>
5855
</el-form-item>
5956
</el-form>
6057
</div>
@@ -112,12 +109,6 @@
112109
>
113110
审核不通过
114111
</el-button>
115-
<el-button
116-
size="mini"
117-
type="primary"
118-
@click="handleEdit(scope.row.id)"
119-
>编辑
120-
</el-button>
121112
<el-button
122113
size="mini"
123114
type="danger"
@@ -210,10 +201,6 @@ export default {
210201
this.getReply()
211202
},
212203
methods: {
213-
// 跳转创建分类
214-
create() {
215-
this.$router.push('/category/create')
216-
},
217204
// 获取回复列表
218205
async getReply() {
219206
try {
@@ -228,10 +215,6 @@ export default {
228215
this.listLoading = false
229216
}
230217
},
231-
// 跳转编辑
232-
handleEdit(id) {
233-
this.$router.push('/comment/edit?id=' + id)
234-
},
235218
// 更新回复评论-审核状态
236219
async changeStatus(id, status) {
237220
await update({

frontend-boblog/.env.development

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
NUXT_APP_ENV = 'development'
33

44
# base api
5-
BASE_URL = 'https://api.boblog.com/api/v1'
6-
# BASE_URL = 'http://localhost:5000/api/v1'
5+
BASE_URL = 'http://localhost:5000/api/v1'
76
BOBLOG_TOKEN = 'BOBLOG_TOKEN'

0 commit comments

Comments
 (0)