修正接口请求
This commit is contained in:
@@ -84,7 +84,7 @@ export default {
|
||||
methods: {
|
||||
getDetail() {
|
||||
let {id} = this.$route.query
|
||||
id && this.instance.post("/appvideonews/getById", null, {
|
||||
id && this.instance.post("/app/appvideonews/getById", null, {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
@@ -96,7 +96,7 @@ export default {
|
||||
this.$refs.VideoForm.validate(v => {
|
||||
if (v) {
|
||||
let {form} = this
|
||||
this.instance.post("/appvideonews/addOrUpdate", form).then(res => {
|
||||
this.instance.post("/app/appvideonews/addOrUpdate", form).then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.$message.success("提交成功!")
|
||||
this.back()
|
||||
|
||||
@@ -61,7 +61,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
this.instance.post("/appvideonews/list", null, {
|
||||
this.instance.post("/app/appvideonews/list", null, {
|
||||
params: {...this.page, ...this.search}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
@@ -78,7 +78,7 @@ export default {
|
||||
},
|
||||
handleDelete(ids) {
|
||||
this.$confirm("是否要删除该视频?").then(() => {
|
||||
this.instance.post("/appvideonews/delete", null, {
|
||||
this.instance.post("/app/appvideonews/delete", null, {
|
||||
params: {ids}
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
@@ -104,7 +104,7 @@ export default {
|
||||
handlePublic(row) {
|
||||
let openLabel = row.status == 1 ? "取消发布" : "发布", status = (Number(row.status) + 1) % 2
|
||||
this.$confirm(`是否要${openLabel}视频?`).then(() => {
|
||||
this.instance.post("/appvideonews/setStatus", null, {
|
||||
this.instance.post("/app/appvideonews/setStatus", null, {
|
||||
params: {id: row.id, status}
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
|
||||
Reference in New Issue
Block a user