mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-03 08:20:36 +00:00
Merge branch 'v5.0.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.0.0dev
This commit is contained in:
commit
9d28c60a6b
@ -25,7 +25,7 @@ Route::miss(function () {
|
||||
return view(app()->getRootPath() . 'public' . DS . 'index.html');
|
||||
default:
|
||||
if (!request()->isMobile()) {
|
||||
if (is_dir(app()->getRootPath() . 'public' . DS . 'home') && !request()->get('type')) {
|
||||
if (is_dir(app()->getRootPath() . 'public' . DS . 'home') && !request()->get('mdType')) {
|
||||
return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html');
|
||||
} else {
|
||||
if (request()->get('type')) {
|
||||
|
||||
@ -434,13 +434,13 @@ export default {
|
||||
},
|
||||
changeTab(name) {
|
||||
if (name === 'Header') {
|
||||
if (!this.$refs.zTable.getTableData().tableData.length) {
|
||||
this.insertEvent('zTable', {
|
||||
attribute: 'Content-Type',
|
||||
value: 'application/x-www-form-urlencoded',
|
||||
});
|
||||
this.insertEvent('zaTable');
|
||||
}
|
||||
// if (!this.$refs.zTable.getTableData().tableData.length) {
|
||||
// this.insertEvent('zTable', {
|
||||
// attribute: 'Content-Type',
|
||||
// value: 'application/x-www-form-urlencoded',
|
||||
// });
|
||||
// this.insertEvent('zaTable');
|
||||
// }
|
||||
}
|
||||
console.log(this.interfaceData);
|
||||
},
|
||||
|
||||
@ -508,11 +508,7 @@ export default {
|
||||
{
|
||||
value: 'PUT',
|
||||
label: 'PUT',
|
||||
},
|
||||
{
|
||||
value: '*',
|
||||
label: '*',
|
||||
},
|
||||
}
|
||||
],
|
||||
contextData: null, //左侧导航右键点击是产生的数据对象
|
||||
treeData: undefined,
|
||||
|
||||
@ -20,6 +20,8 @@ service.interceptors.request.use(
|
||||
// }
|
||||
if (config.file) {
|
||||
config.headers['Content-Type'] = 'multipart/form-data';
|
||||
} else {
|
||||
config.headers['Content-Type'] = 'application/json;charset=UTF-8';
|
||||
}
|
||||
try {
|
||||
if (config.headerItem) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user