Commit 5ec84605 by Lyan

详情面包屑bug

parent def5e0fa
......@@ -106,16 +106,16 @@
<el-form-item label="图片:" prop="pic">
<el-upload
v-show="!showInfo"
class="avatar-uploader"
class="avatar-uploader avatar"
action=""
:show-file-list="false"
:http-request="Upload"
:before-upload="beforeAvatarUpload"
>
<img v-if="dialogVisible" :src="imgUrlStr" class="avatar" />
<img v-if="dialogVisible" :src="imgUrlStr" class="" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
<p v-show="showInfo"><img :src="imgUrlStr" class="avatar" /></p>
<p v-show="showInfo"><img :src="imgUrlStr" class="avatar2" /></p>
</el-form-item>
<el-form-item label="简介:" prop="brief">
......@@ -204,13 +204,13 @@ export default {
},
piclevelList,
id: [],
title: "",
className: "",
cclassName: "",
};
title: '',
className: '',
cclassName: ''
}
},
mounted() {
console.log(this.classidList);
mounted () {
console.log(this.classidList)
},
methods: {
getSelectName (list, id) {
......
......@@ -297,16 +297,16 @@ export default {
},
// 预览
previewHandle (info) {
console.log(info, '预览');
let url;
console.log(info, '预览')
let url
if (!info.directpath || info.directpath === null) {
url = `${this.$store.state.config.urls}/News/msg?id=${info.id}`;
url = `${this.$store.state.config.urls}/News/msg?id=${info.id}`
} else if (/^\//.test(info.directpath)) {
url = `${this.$store.state.config.urls}${info.directpath}`;
url = `${this.$store.state.config.urls}${info.directpath}`
} else {
url = info.directpath;
url = info.directpath
}
window.open(url, '_blank');
window.open(url, '_blank')
},
// 新增 / 修改
addOrUpdateHandle (id, showInfo) {
......
......@@ -298,7 +298,7 @@ export default {
method: 'post',
data: this.$http.adornData({
'id': id,
'status': status
'checkflag': status
})
}).then(({data}) => {
if (data && data.code === 0) {
......
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