params
// params参数拼接在 url后面
1 service({ 2 url: "/api/user/save", 3 methods: "post", 4 params: { 5 Model: modelstr, 6 }, 7 })
改成
1 service({ 2 url: "/api/user/save", 3 methods: "post", 4 data: { 5 Model: modelstr, 6 }, 7 })
params
// params参数拼接在 url后面
1 service({ 2 url: "/api/user/save", 3 methods: "post", 4 params: { 5 Model: modelstr, 6 }, 7 })
改成
1 service({ 2 url: "/api/user/save", 3 methods: "post", 4 data: { 5 Model: modelstr, 6 }, 7 })