将所有相关 Vue 组件中的 API 提交地址从 'https://common.szjixun.cn/api/stock/submit/data' 更新为 'https://erpapi-out.szjixun.cn/api/stock/submit/data',以确保正确的 API 调用。
This commit is contained in:
parent
363d1e1f9e
commit
ad5d6f7b1a
@ -13,7 +13,7 @@ const submitted = ref(false);
|
|||||||
|
|
||||||
async function handleSubmit(e) {
|
async function handleSubmit(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const res = await axios.post('https://common.szjixun.cn/api/stock/submit/data', form.value)
|
const res = await axios.post('https://erpapi-out.szjixun.cn/api/stock/submit/data', form.value)
|
||||||
if(res.data.status === 0){
|
if(res.data.status === 0){
|
||||||
submitted.value = true;
|
submitted.value = true;
|
||||||
}else{
|
}else{
|
||||||
|
@ -14,7 +14,7 @@ const submitted = ref(false);
|
|||||||
|
|
||||||
async function handleSubmit(e) {
|
async function handleSubmit(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const res = await axios.post('https://common.szjixun.cn/api/stock/submit/data', form.value)
|
const res = await axios.post('https://erpapi-out.szjixun.cn/api/stock/submit/data', form.value)
|
||||||
if(res.data.status === 0){
|
if(res.data.status === 0){
|
||||||
submitted.value = true;
|
submitted.value = true;
|
||||||
}else{
|
}else{
|
||||||
|
@ -13,7 +13,7 @@ const submitted = ref(false);
|
|||||||
|
|
||||||
async function handleSubmit(e) {
|
async function handleSubmit(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const res = await axios.post('https://common.szjixun.cn/api/stock/submit/data', form.value)
|
const res = await axios.post('https://erpapi-out.szjixun.cn/api/stock/submit/data', form.value)
|
||||||
if(res.data.status === 0){
|
if(res.data.status === 0){
|
||||||
submitted.value = true;
|
submitted.value = true;
|
||||||
}else{
|
}else{
|
||||||
|
@ -14,7 +14,7 @@ const submitted = ref(false);
|
|||||||
|
|
||||||
async function handleSubmit(e) {
|
async function handleSubmit(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const res = await axios.post('https://common.szjixun.cn/api/stock/submit/data', form.value)
|
const res = await axios.post('https://erpapi-out.szjixun.cn/api/stock/submit/data', form.value)
|
||||||
if(res.data.status === 0){
|
if(res.data.status === 0){
|
||||||
submitted.value = true;
|
submitted.value = true;
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
Reference in New Issue
Block a user