modify name

This commit is contained in:
MaysWind
2020-11-12 00:19:51 +08:00
parent e4407c8137
commit bd6093e20e
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ Vue.prototype.$version = version.getVersion;
Vue.prototype.$constants = {
account: account
};
Vue.prototype.$utils = utils;
Vue.prototype.$utilities = utils;
Vue.prototype.$settings = settings;
Vue.prototype.$getDefaultLanguage = getDefaultLanguage;
Vue.prototype.$getAllLanguages = getAllLanguages;
+1 -1
View File
@@ -157,7 +157,7 @@ export default {
return;
}
if (self.$utils.isString(data.result.token)) {
if (self.$utilities.isString(data.result.token)) {
self.$user.updateTokenAndUserInfo(data.result);
}
+3 -3
View File
@@ -73,7 +73,7 @@ export default {
for (let i = 0; i < allAccountCategories.length; i++) {
const accountCategory = allAccountCategories[i];
if (this.$utils.isArray(this.accounts[accountCategory.id]) && this.accounts[accountCategory.id].length) {
if (this.$utilities.isArray(this.accounts[accountCategory.id]) && this.accounts[accountCategory.id].length) {
usedAccountCategories.push(accountCategory);
}
}
@@ -98,7 +98,7 @@ export default {
return;
}
self.accounts = self.$utils.getCategorizedAccounts(data.result);
self.accounts = self.$utilities.getCategorizedAccounts(data.result);
}).catch(error => {
self.loading = false;
@@ -127,7 +127,7 @@ export default {
return;
}
self.accounts = self.$utils.getCategorizedAccounts(data.result);
self.accounts = self.$utilities.getCategorizedAccounts(data.result);
}).catch(error => {
done();
+1 -1
View File
@@ -175,7 +175,7 @@ export default {
self.loading = false;
const data = response.data;
if (!data || !data.success || !data.result || !self.$utils.isBoolean(data.result.enable)) {
if (!data || !data.success || !data.result || !self.$utilities.isBoolean(data.result.enable)) {
self.$alert('Unable to get current two factor authentication status', () => {
router.back();
});
+2 -2
View File
@@ -242,11 +242,11 @@ export default {
return;
}
if (self.$utils.isString(data.result.newToken)) {
if (self.$utilities.isString(data.result.newToken)) {
self.$user.updateToken(data.result.newToken);
}
if (self.$utils.isObject(data.result.user)) {
if (self.$utilities.isObject(data.result.user)) {
self.$user.updateUserInfo(data.result.user);
}