清除console.log语句
This commit is contained in:
@@ -68,8 +68,6 @@ const fireToast = () => {
|
|||||||
const alertSettings=localStorage.getItem("alertSettings");
|
const alertSettings=localStorage.getItem("alertSettings");
|
||||||
if (alertSettings){
|
if (alertSettings){
|
||||||
for (const alertSetting of JSON.parse(alertSettings)) {
|
for (const alertSetting of JSON.parse(alertSettings)) {
|
||||||
console.log(alertSetting);
|
|
||||||
|
|
||||||
const value=isNaN(parseFloat(alertSetting.value))?alertSetting.value:parseFloat(alertSetting.value);
|
const value=isNaN(parseFloat(alertSetting.value))?alertSetting.value:parseFloat(alertSetting.value);
|
||||||
const para=alertSetting.criterion<2?"delta_"+alertSetting.para:alertSetting.para;
|
const para=alertSetting.criterion<2?"delta_"+alertSetting.para:alertSetting.para;
|
||||||
if (alertSetting.id=="ALL"){
|
if (alertSetting.id=="ALL"){
|
||||||
|
|||||||
@@ -83,8 +83,6 @@ const PublishForm = ({ data, closeModel }: { data: Article, closeModel: () => vo
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onSubmit: FormProps<FieldType>['onFinish'] = async (values) => {
|
const onSubmit: FormProps<FieldType>['onFinish'] = async (values) => {
|
||||||
console.log(values);
|
|
||||||
|
|
||||||
// 如果是文章标签,则先判断是否存在,如果不存在则添加
|
// 如果是文章标签,则先判断是否存在,如果不存在则添加
|
||||||
let tagIds: number[] = []
|
let tagIds: number[] = []
|
||||||
if (values.tagIds) {
|
if (values.tagIds) {
|
||||||
|
|||||||
@@ -54,9 +54,6 @@ const RoutePage = () => {
|
|||||||
const onSubmit = async () => {
|
const onSubmit = async () => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
form.validateFields().then(async (values: Route) => {
|
form.validateFields().then(async (values: Route) => {
|
||||||
console.log(111,route.id);
|
|
||||||
console.log(222,values);
|
|
||||||
|
|
||||||
|
|
||||||
if (route.id) {
|
if (route.id) {
|
||||||
await editRouteDataAPI({ ...route, ...values });
|
await editRouteDataAPI({ ...route, ...values });
|
||||||
|
|||||||
Reference in New Issue
Block a user