Merge branch 'ycds-wms-dev' of http://47.97.1.152:5880/r/zy-asrs-master into ycds-wms-dev
| | |
| | | import { reactive, inject } from 'vue';
|
| | |
|
| | | export const globalState = reactive({
|
| | | url: 'http://192.168.8.14:8081/wms',
|
| | | url: 'http://127.0.0.1:8081/wms',
|
| | | token: '',
|
| | | user: null,
|
| | | locale: 'zh_CN', // 默认语言
|
| | |
| | | })
|
| | |
|
| | | export const get = async (url, params) => {
|
| | | if (params?.condition != null || params?.condition != undefined) {
|
| | | if (params?.condition != null && params?.condition != undefined && params?.condition != "") {
|
| | | params.current = 1
|
| | | }
|
| | |
|
| | | return instance({
|
| | | url: url,
|
| | | method: 'get',
|
| | |
| | | }
|
| | |
|
| | | export const post = async (url, data) => {
|
| | | if (data?.condition != null || data?.condition != undefined) {
|
| | | if (data?.condition != null && data?.condition != undefined && data?.condition != "") {
|
| | | data.current = 1
|
| | | }
|
| | |
|