fix email-alerts api

This commit is contained in:
yuanshan 2025-10-16 09:29:00 +08:00
parent d86ad2c832
commit b3ab1781c3
6 changed files with 24 additions and 23 deletions

View File

@ -324,7 +324,12 @@ const handleToHome = () => {
align-items: center; align-items: center;
gap: 8px; gap: 8px;
cursor: pointer; cursor: pointer;
.lang-label {
font-size: 12 * 1.33px;
font-weight: 600;
line-height: normal;
color: #000;
}
svg { svg {
transition: transform 0.2s; transition: transform 0.2s;
&.rotated { &.rotated {

View File

@ -320,7 +320,12 @@ const handleToHome = () => {
align-items: center; align-items: center;
gap: 8px; gap: 8px;
cursor: pointer; cursor: pointer;
.lang-label {
font-size: 12px;
font-weight: 600;
line-height: normal;
color: #000;
}
svg { svg {
transition: transform 0.2s; transition: transform 0.2s;
&.rotated { &.rotated {

View File

@ -24,13 +24,11 @@ async function handleSubmit(e) {
message.warning("字段长度不能超过50个字符"); message.warning("字段长度不能超过50个字符");
return; return;
} }
const res = await axios.post( let url = "http://114.218.158.24:9020/api/fiee/emailalerts/submit";
"https://erpapi-out.szjixun.cn/api/stock/submit/data", // let url = 'https://erpapi-out.szjixun.cn/api/fiee/emailalerts/submit'
form.value const res = await axios.post(url, form.value);
);
if (res.data.status === 0) { if (res.data.status === 0) {
submitted.value = true; submitted.value = true;
} else {
} }
} }
</script> </script>

View File

@ -24,13 +24,11 @@ async function handleSubmit(e) {
message.warning("字段长度不能超过50个字符"); message.warning("字段长度不能超过50个字符");
return; return;
} }
const res = await axios.post( let url = "http://114.218.158.24:9020/api/fiee/emailalerts/submit";
"https://erpapi-out.szjixun.cn/api/stock/submit/data", // let url = 'https://erpapi-out.szjixun.cn/api/fiee/emailalerts/submit'
form.value const res = await axios.post(url, form.value);
);
if (res.data.status === 0) { if (res.data.status === 0) {
submitted.value = true; submitted.value = true;
} else {
} }
} }
</script> </script>

View File

@ -24,14 +24,11 @@ async function handleSubmit(e) {
message.warning("字段长度不能超过50个字符"); message.warning("字段长度不能超过50个字符");
return; return;
} }
e.preventDefault(); let url = "http://114.218.158.24:9020/api/fiee/emailalerts/submit";
const res = await axios.post( // let url = 'https://erpapi-out.szjixun.cn/api/fiee/emailalerts/submit'
"https://erpapi-out.szjixun.cn/api/stock/submit/data", const res = await axios.post(url, form.value);
form.value
);
if (res.data.status === 0) { if (res.data.status === 0) {
submitted.value = true; submitted.value = true;
} else {
} }
} }
</script> </script>

View File

@ -24,13 +24,11 @@ async function handleSubmit(e) {
message.warning("字段长度不能超过50个字符"); message.warning("字段长度不能超过50个字符");
return; return;
} }
const res = await axios.post( let url = "http://114.218.158.24:9020/api/fiee/emailalerts/submit";
"https://erpapi-out.szjixun.cn/api/stock/submit/data", // let url = 'https://erpapi-out.szjixun.cn/api/fiee/emailalerts/submit'
form.value const res = await axios.post(url, form.value);
);
if (res.data.status === 0) { if (res.data.status === 0) {
submitted.value = true; submitted.value = true;
} else {
} }
} }
</script> </script>