修正接口请求
This commit is contained in:
@@ -63,7 +63,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
this.instance.post("/appleavemessage/list", null, {
|
||||
this.instance.post("/app/appleavemessage/list", null, {
|
||||
params: {...this.page, ...this.search}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
@@ -78,7 +78,7 @@ export default {
|
||||
handleEnable(row) {
|
||||
let openLabel = row.isOpen == 1 ? "取消公示" : "公示", isOpen = (Number(row.isOpen) + 1) % 2
|
||||
this.$confirm(`是否要${openLabel}留言?`).then(() => {
|
||||
this.instance.post("/appleavemessage/setIsOpen", null, {
|
||||
this.instance.post("/app/appleavemessage/setIsOpen", null, {
|
||||
params: {id: row.id, isOpen}
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
|
||||
Reference in New Issue
Block a user