This commit is contained in:
@@ -58,7 +58,7 @@ export default {
|
||||
// eslint-disable-next-line
|
||||
let res = await window.$gz.api.get("enum-list/list/" + enumKey);
|
||||
//We never expect there to be no data here
|
||||
if (!res.data) {
|
||||
if (!res.hasOwnProperty("data")) {
|
||||
throw res;
|
||||
}
|
||||
return res.data;
|
||||
|
||||
Reference in New Issue
Block a user