zhs пре 3 година
родитељ
комит
71d5e7f0a2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/resources/static/js/registered/index.js

+ 1 - 1
src/main/resources/static/js/registered/index.js

@@ -131,7 +131,7 @@ layui.use(["layer", "form", "laydate", "upload"], function(){
             url: "http://192.168.0.116:9600/supplier/registered",
             type: "post",
             data: $("#form").serialize(),
-            dataType: "text",
+            dataType: "json",
             headers: {token: token},
             success: (data) => {
                 if(data.msg == "200"){