...
|
...
|
@@ -30,16 +30,23 @@ export default { |
|
|
},
|
|
|
|
|
|
async saveLicense({ commit }, data) {
|
|
|
const result = await this.$api.post(
|
|
|
let result = {};
|
|
|
|
|
|
try {
|
|
|
result = await this.$api.post(
|
|
|
'/api/ufo/license/save',
|
|
|
_handleData(data)
|
|
|
);
|
|
|
} catch (e) {
|
|
|
commit(Types.FETCH_UFO_NEED_LOGIN, true);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
return result;
|
|
|
},
|
|
|
|
|
|
async licenseStatus({ commit }) {
|
|
|
let result = null;
|
|
|
let result = {};
|
|
|
|
|
|
try {
|
|
|
result = await this.$api.get('/api/ufo/license/status');
|
...
|
...
|
@@ -58,7 +65,13 @@ export default { |
|
|
},
|
|
|
|
|
|
async getStoreStatus({ commit }) {
|
|
|
const result = await this.$api.get('/api/ufo/store/status');
|
|
|
let result = {};
|
|
|
|
|
|
try {
|
|
|
result = await this.$api.get('/api/ufo/store/status');
|
|
|
} catch (e) {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
return result;
|
|
|
}
|
...
|
...
|
|