分享一些状态码400 404 500等原因:
出错:
前端:
// 获取所有的导航菜单
async getMenuList(){
const {data:res} = await this.$http.get("menus");
console.log(res.data);
if( res.status != 200) return this.$message.error("操作失败!!!");
this
分享一些状态码400 404 500等原因:
出错:
前端:
// 获取所有的导航菜单
async getMenuList(){
const {data:res} = await this.$http.get("menus");
console.log(res.data);
if( res.status != 200) return this.$message.error("操作失败!!!");
this