修正接口请求
This commit is contained in:
@@ -179,7 +179,7 @@ export default {
|
||||
methods: {
|
||||
getList() {
|
||||
this.instance
|
||||
.post(`/appbanner/list`, null, {
|
||||
.post(`/app/appbanner/list`, null, {
|
||||
params: {
|
||||
...this.search,
|
||||
...this.page,
|
||||
@@ -212,7 +212,7 @@ export default {
|
||||
addConfirm() {
|
||||
this.$refs.DialogForm.validate(v => {
|
||||
if (v) {
|
||||
this.instance.post(`/appbanner/addOrUpdate`, {
|
||||
this.instance.post(`/app/appbanner/addOrUpdate`, {
|
||||
imgUrl: this.dialogInfo.imgUrl?.[0]?.url,
|
||||
linkUrl: this.dialogInfo.linkUrl,
|
||||
status: this.status,
|
||||
@@ -233,7 +233,7 @@ export default {
|
||||
release(row) {
|
||||
this.$confirm('确定此操作?').then(() => {
|
||||
let status = row.status == 1 ? '0' : '1'
|
||||
this.instance.post(`/appbanner/setStatus?id=${row.id}&status=${status}`).then((res) => {
|
||||
this.instance.post(`/app/appbanner/setStatus?id=${row.id}&status=${status}`).then((res) => {
|
||||
if (res?.code == 0) {
|
||||
this.$message.success("操作成功!")
|
||||
this.getList()
|
||||
@@ -244,7 +244,7 @@ export default {
|
||||
// 详情
|
||||
detail(row) {
|
||||
this.detailDialog = true
|
||||
this.instance.post(`/appbanner/detail?id=${row.id}`, {
|
||||
this.instance.post(`/app/appbanner/detail?id=${row.id}`, {
|
||||
// imgUrl: this.dialogInfo.imgUrl[0].url
|
||||
})
|
||||
.then((res) => {
|
||||
@@ -267,7 +267,7 @@ export default {
|
||||
this.$confirm('删除后不可恢复,是否要删除该记录?', {
|
||||
type: 'error',
|
||||
}).then(() => {
|
||||
this.instance.post(`/appbanner/delete?ids=${id}`).then((res) => {
|
||||
this.instance.post(`/app/appbanner/delete?ids=${id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('删除成功!')
|
||||
this.getList()
|
||||
|
||||
Reference in New Issue
Block a user