mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-12-28 12:10:20 +08:00
feat: Add response code 400.
fix: Change the parameter naming of the get method to params.
This commit is contained in:
@@ -52,6 +52,9 @@ export function repReject(error) {
|
||||
* TODO 此处可以根据后端返回的错误码自定义框架层面的错误处理
|
||||
*/
|
||||
switch (code) {
|
||||
case 400:
|
||||
message = message || '请求参数错误'
|
||||
break
|
||||
case 401:
|
||||
message = message || '登录已过期'
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user