| @@ -4,7 +4,7 @@ import { Message } from "element-ui" | |||||
| const service = axios.create({ | const service = axios.create({ | ||||
| baseURL: '/C/', | baseURL: '/C/', | ||||
| // baseURL: 'https://www.yjyculture.com/C/', | |||||
| //baseURL: 'https://www.yjyculture.com/C/', | |||||
| timeout: 60000 // 请求超时时间 | timeout: 60000 // 请求超时时间 | ||||
| }) | }) | ||||
| @@ -62,6 +62,8 @@ export default { | |||||
| homeService.getNewsList(d).then(res => { | homeService.getNewsList(d).then(res => { | ||||
| res.list.forEach(ele => { | res.list.forEach(ele => { | ||||
| ele.publishDate = moment(ele.publishDate).format("YYYY-MM-DD") | ele.publishDate = moment(ele.publishDate).format("YYYY-MM-DD") | ||||
| ele.content = ele.content.replace(/<img\b[^>]*>/, ""); | |||||
| }); | }); | ||||
| this.paging.total = Number(res.total) | this.paging.total = Number(res.total) | ||||
| this.newsList = res.list | this.newsList = res.list | ||||
| @@ -21,7 +21,10 @@ module.exports = { | |||||
| }, | }, | ||||
| lintOnSave: false, | lintOnSave: false, | ||||
| chainWebpack: (config) => { | chainWebpack: (config) => { | ||||
| config.resolve.alias | |||||
| .set('@', resolve('src')) | |||||
| config.resolve.alias.set('@', resolve('src')) | |||||
| config.plugin('html').tap(args => { | |||||
| args[0].minify=false | |||||
| return args | |||||
| }) | |||||
| } | } | ||||
| } | } | ||||