上传文件

This commit is contained in:
徐哼唧L
2024-02-08 09:15:38 +08:00
parent a5110e7c16
commit 9fdafcb949
8 changed files with 820 additions and 500 deletions

View File

@@ -1,28 +1,82 @@
// // const webpack = require("webpack")
// module.exports = {
// publicPath: './',
// assetsDir: 'static',
// productionSourceMap: false,
// devServer: {
// // public: 'http://192.168.110.156:8080/', // 你自己本地的ip地址:端口号
// // host:'localhost'
// public: '0.0.0.0:8080/',
// port: '8080',
// // open: true,
// // overlay: {
// // warnings: false,
// // errors: true
// // },
// // proxy: {
// // '/api': {
// // // target: 'https://www.tmrjournals.cn',
// // target: 'https://submission.tmrjournals.com/',
// // changeOrigin: true,
// // pathRewrite: {
// // '^/api': ''
// // }
// // }
// // }
// },
// // devServer: {
// // port: port,
// // open: true,
// // overlay: {
// // warnings: false,
// // errors: true
// // },
// // // before: require('./mock/mock-server.js') // 注释掉这一行
// // proxy: {
// // '/dev-api': { // 因为默认开发api就是dev-api所以我这里就没有改其他名字也叫dev-api
// // target: 'https://ceshi.xxxxxxxx.com/',
// // pathRewrite: {
// // '^/dev-api': ''
// // }, // 记得也哟改dev-api
// // }
// // }
// // },
// // 配置插件参数
// // configureWebpack: {
// // plugins: [
// // new webpack.ProvidePlugin({
// // 'window.Quill': 'quill'
// // })
// // ]
// // }
// }
// const webpack = require("webpack")
module.exports = {
publicPath: './',
assetsDir: 'static',
productionSourceMap: false,
devServer: {
// public: 'http://192.168.110.156:8080/', // 你自己本地的ip地址:端口号
// host:'localhost'
public: '0.0.0.0:8080/',
// public: 'http://192.168.110.159:8080/', // 你自己本地的ip地址:端口号
port: '8080',
// open: true,
// overlay: {
// warnings: false,
// errors: true
// },
// proxy: {
// '/api': {
// // target: 'https://www.tmrjournals.cn',
// target: 'https://submission.tmrjournals.com/',
// changeOrigin: true,
// pathRewrite: {
// '^/api': ''
// }
// }
// }
open: true,
overlay: {
warnings: false,
errors: true
},
proxy: {
'/api': {
// target: 'https://www.tmrjournals.cn',
target: 'https://submission.tmrjournals.com/',
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
}
}
},
// devServer: {