@@ -1 +1 @@
-VUE_APP_BASE_API=/
+VUE_APP_BASE_API=/data
@@ -98,7 +98,8 @@
<el-col :span="12">
<el-form-item label="更新时间" prop="updateTime">
<el-date-picker v-model="postManagement.updateTime" value-format="yyyy-MM-dd"
- type="date" placeholder="请选择更新时间" style="width: 100%">
+ :picker-options="pickerOptions" type="date" placeholder="请选择更新时间"
+ style="width: 100%">
</el-date-picker>
</el-form-item>
</el-col>
@@ -157,6 +158,11 @@
file: null,
fileList: []
},
+ pickerOptions: {
+ disabledDate(time) {
+ return time.getTime() > Date.now() - 8.64e6; //只能选择今天及今天之前的日期
+ }
+ },
// 上传文件界面
dialogVisible: false,
//编辑界面
@@ -22,7 +22,7 @@ module.exports = {
target:'https://www.cqna.gov.cn/',//线上
changeOrigin: true,
pathRewrite: {
- '^ /': 'data/'
+ '^ /': ''
}