编辑
diff --git a/src/views/distribute/addbud.vue b/src/views/distribute/addbud.vue
index 2528687..81d8fbc 100644
--- a/src/views/distribute/addbud.vue
+++ b/src/views/distribute/addbud.vue
@@ -150,6 +150,10 @@ export default {
} else {
this.$toast.error(res.message);
}
+ })
+ .catch(e => {
+ console.log(e);
+ this.$toast.error(JSON.stringify(e))
});
},
goedit() {
diff --git a/src/views/distribute/product.vue b/src/views/distribute/product.vue
index 6544b8b..72c01bc 100644
--- a/src/views/distribute/product.vue
+++ b/src/views/distribute/product.vue
@@ -7,6 +7,16 @@
end-placeholder="结束日期" size="mini" format="yyyy 年 MM 月 dd 日">
+
+
+
+
+
+
+
+
diff --git a/vue.config.js b/vue.config.js
index 6c02be2..80f227b 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,9 +1,9 @@
-const UploadToOssPlugin = require('./scripts/uploadToOssPlugin')
+// const UploadToOssPlugin = require('./scripts/uploadToOssPlugin')
module.exports = {
- publicPath: process.env.NODE_ENV === 'production'
- ? 'https://cqxy-bank.oss-cn-chengdu.aliyuncs.com/xinye-bank/cms'
- : '/',
+ // publicPath: process.env.NODE_ENV === 'production'
+ // ? 'https://cqxy-bank.oss-cn-chengdu.aliyuncs.com/xinye-bank/cms'
+ // : '/',
lintOnSave: false,
productionSourceMap: false,
css: {
@@ -14,23 +14,23 @@ module.exports = {
},
},
},
- configureWebpack: config => {
- if (process.env.NODE_ENV !== 'production') return
- return {
- plugins: [
- new UploadToOssPlugin({
- cdnpath: '/xinye-bank/cms',
- ossOption: {
- region: 'oss-cn-chengdu',
- accessKeyId: 'LTAI5tGGZzjf3tvqWk8SQj2G',
- accessKeySecret: 'S0NKOAUaYWoK4EGSxrMFmYDzllhvpq',
- bucket: 'cqxy-bank'
- }
- })
+ // configureWebpack: config => {
+ // if (process.env.NODE_ENV !== 'production') return
+ // return {
+ // plugins: [
+ // new UploadToOssPlugin({
+ // cdnpath: '/xinye-bank/cms',
+ // ossOption: {
+ // region: 'oss-cn-chengdu',
+ // accessKeyId: 'LTAI5tGGZzjf3tvqWk8SQj2G',
+ // accessKeySecret: 'S0NKOAUaYWoK4EGSxrMFmYDzllhvpq',
+ // bucket: 'cqxy-bank'
+ // }
+ // })
- ]
- }
- },
+ // ]
+ // }
+ // },
pluginOptions: {
"cube-ui": {
postCompile: true,