Browse Source

去掉console

master
zhang_li 8 months ago
parent
commit
13d75b8286
  1. 1
      .env.development
  2. 1
      src/api/http.ts
  3. 1
      src/api/uploadHttp.ts
  4. 3
      src/pages/inLocation/addForm.vue
  5. 3
      src/pages/index.vue
  6. 1
      src/pages/outLocation/addForm.vue
  7. 1
      src/pages/sparePartsReturn/addForm.vue

1
.env.development

@ -1,3 +1,4 @@
VITE_BASE_URL=http://192.168.0.106:12080/admin-api
#VITE_BASE_URL=http://dev.ccwin-in.com:25203/api/admin-api
VITE_BASE_URL_IMAGE=http://localhost:12080/admin-api

1
src/api/http.ts

@ -103,7 +103,6 @@ instance.interceptors.response.use((v) => {
}
return Promise.reject(v)
},error=>{
console.log(error)
uni.showToast({
title: '网络错误',
icon: 'none'

1
src/api/uploadHttp.ts

@ -58,7 +58,6 @@ upload.interceptors.request.use((config) => {
})
}
console.log(11, headers)
return {
...config,
headers

3
src/pages/inLocation/addForm.vue

@ -163,7 +163,6 @@
const isFocus = ref(false)
const msg = ref('')
function submit() {
console.log(form.value)
if (form.value.itemNumbers.length === 0) {
proxy.$modal.showToast('请选择备件')
return;
@ -305,7 +304,6 @@
number: form1.value.itemNumber,
id: form.value.id
}).then(res => {
console.log(res)
if (!res.data) {
itemNumber.value = ''
form1.value.areaNumber = ''
@ -330,7 +328,6 @@
}
}).catch((err) => {
console.log(err)
itemNumber.value = ''
form1.value.areaNumber = ''
form1.value.itemName = ''

3
src/pages/index.vue

@ -119,15 +119,12 @@
}).catch(() => { })
}
function handleLogin() {
console.log(11)
proxy.$tab.navigateTo('/pages/login')
}
onLoad(async () => {
await proxy.$onLaunched;
menus1.value = store.menus1
menus2.value = store.menus2
console.log(store)
})
onPageScroll((e) => {
if (e.scrollTop > 0) {

1
src/pages/outLocation/addForm.vue

@ -356,7 +356,6 @@
if (option.data && JSON.parse(decodeURIComponent(option.data)) && JSON.parse(decodeURIComponent(option
.data)).id) {
let formData = JSON.parse(decodeURIComponent(option.data))
console.log(form)
form.value.supplierName = formData.supplierName
form.value.number = formData.number
form.value.id = formData.id

1
src/pages/sparePartsReturn/addForm.vue

@ -243,7 +243,6 @@ const singleColumnShow = ref(false)
proxy.$modal.showToast('该库位属于帐内库,请选择帐外库')
return;
}
console.log(itemNumber.value)
if (itemNumber.value) {
proxy.$modal.showToast('该库位已绑定过其他备件')
return;

Loading…
Cancel
Save