File tree Expand file tree Collapse file tree 4 files changed +6
-42
lines changed Expand file tree Collapse file tree 4 files changed +6
-42
lines changed Original file line number Diff line number Diff line change 22ENV = ' 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'
Original file line number Diff line number Diff line change 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 =" 请选择状态"
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 =" 评论内容"
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 >
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 {
Original file line number Diff line number Diff line change 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 =" 请选择状态"
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 =" 回复内容"
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 >
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 ({
Original file line number Diff line number Diff line change 22NUXT_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'
76BOBLOG_TOKEN = ' BOBLOG_TOKEN'
You can’t perform that action at this time.
0 commit comments