Commit 704186a0 authored by rencs's avatar rencs

Merge branch 'dev_ren' into 'master'

1.8 星云动态

See merge request !36
parents e9933bd5 bcda06f7
...@@ -586,16 +586,7 @@ export default { ...@@ -586,16 +586,7 @@ export default {
// 更新资讯 // 更新资讯
addUpdateNewsInfo({ addUpdateNewsInfo({
id: info.id, id: info.id,
title: info.title,
detail: info.introduce,
coverImg: info.icon.url,
content: info.title,
newsDate: info.newsDate,
typeId: info.typeId,
status: info.status, status: info.status,
indexShow: info.indexShow,
typeName: info.type,
isDel: info.isDel,
}).then((res) => { }).then((res) => {
if (res.status == 200) { if (res.status == 200) {
this.$message({ this.$message({
......
...@@ -190,7 +190,6 @@ export default { ...@@ -190,7 +190,6 @@ export default {
newsDate: timestamp2Date(new Date().getTime()), newsDate: timestamp2Date(new Date().getTime()),
typeId: this.form.region, typeId: this.form.region,
isDel: 0, // 0为未被删除,1为已删除 isDel: 0, // 0为未被删除,1为已删除
status: 2, // 默认上传即为下架状态(1为上架2为下架)
indexShow: 1, indexShow: 1,
typeName: this.types.find((ele) => ele.value == this.form.region) typeName: this.types.find((ele) => ele.value == this.form.region)
.label, .label,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment