MY-SH\lenovo 12 months ago
parent e2263a0bfa
commit 16e5c64ae0

@ -5,7 +5,7 @@ VUE_APP_TITLE = 唐河县安全隐患及应急救援管理平台
ENV = 'development' ENV = 'development'
# 若依管理系统/开发环境 # 若依管理系统/开发环境
VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = http://221.176.140.236:8082/ehs
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -138,7 +138,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="上报模板" v-if="taskShow"> <el-form-item label="上报模板" v-if="taskShow">
<file-upload v-model="form.fileTempName" fileType=""/> <file-upload v-model="form.fileTempName" :fileType="['md']"/>
</el-form-item> </el-form-item>
<el-form-item label="内容"> <el-form-item label="内容">
<editor v-model="form.displayContent" :min-height="192"/> <editor v-model="form.displayContent" :min-height="192"/>
@ -170,7 +170,7 @@
small small
:page.sync="pageNum" :page.sync="pageNum"
:limit.sync="pageSize" :limit.sync="pageSize"
@pagination="getList1" @pagination="handleListFile"
:hide-on-single-page="true" :hide-on-single-page="true"
:total="total1"> :total="total1">
</el-pagination> </el-pagination>

@ -35,8 +35,8 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://127.0.0.1:8082`, // target: `http://127.0.0.1:8082`,
//target: `http://221.176.140.236:8082`, target: `http://221.176.140.236:8082`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''

Loading…
Cancel
Save