Commit d41468b3 authored by caimeng's avatar caimeng

允许跨域携带cookie

parent ced24a30
...@@ -87,6 +87,7 @@ const handleData = ({ config, data, status, statusText }) => { ...@@ -87,6 +87,7 @@ const handleData = ({ config, data, status, statusText }) => {
const instance = axios.create({ const instance = axios.create({
baseURL:API_URL, baseURL:API_URL,
timeout: requestTimeout, timeout: requestTimeout,
withCredentials: true,
headers: { headers: {
'Content-Type': contentType, 'Content-Type': contentType,
}, },
......
...@@ -252,9 +252,13 @@ ...@@ -252,9 +252,13 @@
<el-row> <el-row>
<el-col :span="5"> <el-col :span="5">
<el-form-item prop="incomeTimeBefore"> <el-form-item prop="incomeTimeBefore">
<el-input <el-time-picker
v-model="form.incomeTimeBefore" v-model="form.incomeTimeBefore"
style="width: 80px" style="width: 120px"
placeholder="起始时间"
:picker-options="{
selectableRange: '00:00:00 - 23:59:59'
}"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -265,14 +269,14 @@ ...@@ -265,14 +269,14 @@
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item prop="incomeTimeLate"> <el-form-item prop="incomeTimeLate">
<el-input <el-time-picker
v-model="form.incomeTimeLate" v-model="form.incomeTimeLate"
style="width: 130px" style="width: 120px"
> placeholder="结束时间"
<template slot="append"> :picker-options="{
selectableRange: '00:00:00 - 23:59:59'
</template> }"
</el-input> />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
......
...@@ -249,11 +249,15 @@ ...@@ -249,11 +249,15 @@
label="每日进件时间" label="每日进件时间"
> >
<el-row> <el-row>
<el-col :span="5"> <el-col :span="7">
<el-form-item prop="incomeTimeBefore"> <el-form-item prop="incomeTimeBefore">
<el-input <el-time-picker
v-model="form.incomeTimeBefore" v-model="form.incomeTimeBefore"
style="width: 80px" style="width: 120px"
placeholder="起始时间"
:picker-options="{
selectableRange: '00:00:00 - 23:59:59'
}"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -262,16 +266,16 @@ ...@@ -262,16 +266,16 @@
~ ~
</div> </div>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="7">
<el-form-item prop="incomeTimeLate"> <el-form-item prop="incomeTimeLate">
<el-input <el-time-picker
v-model="form.incomeTimeLate" v-model="form.incomeTimeLate"
style="width: 130px" style="width: 120px"
> placeholder="结束时间"
<template slot="append"> :picker-options="{
selectableRange: '00:00:00 - 23:59:59'
</template> }"
</el-input> />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment