feat(api): 为L2 API添加HTTP协议前缀
refactor(warehouse): 重构仓库管理页面为卡片布局并优化交互 - 移除树形表格改用卡片布局 - 添加启用/禁用快捷开关 - 优化备注显示样式 - 简化表单逻辑 feat(utils): 新增WebSocket管理器类 - 支持多连接管理 - 自动重连机制 - 状态监控功能 style(views): 清理注释掉的代码和未使用的组件
This commit is contained in:
@@ -2,7 +2,7 @@ import axios from 'axios'
|
||||
|
||||
export default function createFetch(url) {
|
||||
const l2Request = axios.create({
|
||||
baseURL: url,
|
||||
baseURL: 'http://' + url,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
|
||||
@@ -44,7 +44,7 @@ function formatDateFields(data) {
|
||||
|
||||
export default function createFetch(url) {
|
||||
const l2Request = axios.create({
|
||||
baseURL: url,
|
||||
baseURL: 'http://' + url,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@ import axios from 'axios'
|
||||
|
||||
export default function createFetch(url) {
|
||||
const l2Request = axios.create({
|
||||
baseURL: url,
|
||||
baseURL: 'http://' + url,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@ import axios from 'axios'
|
||||
|
||||
export default function createFetch(url) {
|
||||
const l2Request = axios.create({
|
||||
baseURL: url,
|
||||
baseURL: 'http://' + url,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@ import axios from 'axios'
|
||||
|
||||
export default function createFetch(url) {
|
||||
const l2Request = axios.create({
|
||||
baseURL: url,
|
||||
baseURL: 'http://' + url,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@ import axios from 'axios'
|
||||
|
||||
export default function createFetch(url) {
|
||||
const l2Request = axios.create({
|
||||
baseURL: url,
|
||||
baseURL: 'http://' + url,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@ import axios from 'axios'
|
||||
|
||||
export default function createFetch(url) {
|
||||
const l2Request = axios.create({
|
||||
baseURL: url,
|
||||
baseURL: 'http://' + url,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user