no message
This commit is contained in:
parent
11056a74a4
commit
399922bb77
1
dist/css/116.145ce8ac.css
vendored
1
dist/css/116.145ce8ac.css
vendored
File diff suppressed because one or more lines are too long
1
dist/css/875.02a76cc4.css
vendored
Normal file
1
dist/css/875.02a76cc4.css
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
File diff suppressed because one or more lines are too long
1
dist/js/116.4eb5bccf.js
vendored
1
dist/js/116.4eb5bccf.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/192.73429f3c.js
vendored
1
dist/js/192.73429f3c.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/84.1779a56b.js
vendored
Normal file
1
dist/js/84.1779a56b.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/875.80111e79.js
vendored
Normal file
1
dist/js/875.80111e79.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -560,6 +560,7 @@ export default {
|
||||
adminOperateState: false, // 管理员面板 显示状态
|
||||
deletePostToken: "",
|
||||
managementauthority: 0, // 是否是管理员
|
||||
adminOperateListIndex: null, // 管理员面板 列表下标
|
||||
}
|
||||
},
|
||||
|
||||
@ -1202,6 +1203,7 @@ export default {
|
||||
// 打开管理员 面板
|
||||
openAdminOperate(index) {
|
||||
this.deletePostToken = ""
|
||||
this.adminOperateListIndex = null
|
||||
|
||||
if (index == null) {
|
||||
this.adminOperateState = true
|
||||
@ -1210,6 +1212,7 @@ export default {
|
||||
}
|
||||
this.postList.list[index]["adminOperateState"] = true
|
||||
this.deletePostToken = this.postList.list[index].token
|
||||
this.adminOperateListIndex = index
|
||||
|
||||
this.$forceUpdate()
|
||||
// this.postList = this.token
|
||||
@ -1229,15 +1232,20 @@ export default {
|
||||
popUupDialog(hackinguser) {
|
||||
this.closeAdminOperate()
|
||||
const userConfirmed = confirm(`确定要${hackinguser ? "删除且禁言" : "删除"}?`)
|
||||
if (userConfirmed) {
|
||||
this.deletePost(hackinguser)
|
||||
}
|
||||
if (userConfirmed) this.deletePost(hackinguser)
|
||||
},
|
||||
|
||||
// 删帖
|
||||
deletePost(hackinguser) {
|
||||
console.log(this.adminOperateListIndex, "this.adminOperateListIndex")
|
||||
// return
|
||||
this.$http.post("/api/manage/delete", { token: this.deletePostToken, hackinguser }).then(res => {
|
||||
if (res.code != 200) return
|
||||
console.log(this.adminOperateListIndex)
|
||||
if (this.adminOperateListIndex != null) {
|
||||
location.reload()
|
||||
return
|
||||
}
|
||||
if (document.referrer) window.history.back()
|
||||
else window.location.href = "/"
|
||||
|
||||
@ -1427,8 +1435,8 @@ export default {
|
||||
height: 0.8rem;
|
||||
align-items: center;
|
||||
.item {
|
||||
width: 0.1333rem;
|
||||
height: 0.1333rem;
|
||||
width: 0.0667rem;
|
||||
height: 0.0667rem;
|
||||
border-radius: 50%;
|
||||
background: #8a8a8a;
|
||||
border: 0.0133rem #7f7f7f solid;
|
||||
@ -1441,7 +1449,7 @@ export default {
|
||||
.operate-mask {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(138, 138, 138, 0.6);
|
||||
// background: rgba(138, 138, 138, 0.6);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user