Commit 888ed0d2 authored by liwei's avatar liwei

删除了没用的逻辑

parent a22ad022
......@@ -473,9 +473,7 @@ export default {
})
},
created() {
// this.queryParams.page = JSON.parse(getDataCache(this.$route.path)).page
// console.log('11111', this.$store.getters.type)
// console.log('url:', window.location.href)
},
mounted: function() {
this.loadData()
......@@ -626,7 +624,6 @@ export default {
listCmsApplication({ activityId: activityId })
.then(response => {
const data = response.rows || []
console.log('data', data)
// 清空原始数据(如果有需要的话)
this.gridData = []
this.gridData1 = []
......
......@@ -438,23 +438,7 @@ export default {
this.reset()
const id = row.businessId
getCmsBanner(id).then(response => {
// 处理data数据里的url
if (this.$store.getters.type === '1') { // 开启
if (response.data.path !== undefined) {
const newUrl = updateResponseUrl(response.data.path)
response.data.path = newUrl
}
if (response.data.url !== undefined) {
const newUrl = updateResponseUrl(response.data.url)
response.data.url = newUrl
}
if (response.data.avatarUrl !== undefined) {
const newUrl = updateResponseUrl(response.data.avatarUrl)
response.data.avatarUrl = newUrl
}
}
this.form = response.data
// console.log('this.form:', this.form)
this.imageUrl = response.data.url
this.open = true
this.title = '修改banner'
......
......@@ -306,9 +306,7 @@ export default {
})
},
created() {
// this.queryParams.page = JSON.parse(getDataCache(this.$route.path)).page
// console.log('11111', this.$store.getters.type)
// console.log('url:', window.location.href)
},
mounted: function() {
this.loadData()
......
......@@ -322,22 +322,6 @@ export default {
if (this.$route.query.bussinessId) {
getCmsNotice(this.$route.query.bussinessId).then(response => {
if (response.code === 200) {
// 处理data数据里的url
if (this.$store.getters.type === '1') { // 开启
if (response.data.path !== undefined) {
const newUrl = updateResponseUrl(response.data.path)
response.data.path = newUrl
}
if (response.data.url !== undefined) {
const newUrl = updateResponseUrl(response.data.url)
response.data.url = newUrl
}
if (response.data.avatarUrl !== undefined) {
const newUrl = updateResponseUrl(response.data.avatarUrl)
response.data.avatarUrl = newUrl
}
}
// console.log('res.data:', res.data)
this.form = response.data
this.imageUrl = response.data.path
}
......
......@@ -6,7 +6,7 @@
<script>
export default {
name: 'index'
name: 'Index'
}
</script>
......
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