mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 09:44:26 +08:00
modify name
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ Vue.prototype.$version = version.getVersion;
|
|||||||
Vue.prototype.$constants = {
|
Vue.prototype.$constants = {
|
||||||
account: account
|
account: account
|
||||||
};
|
};
|
||||||
Vue.prototype.$utils = utils;
|
Vue.prototype.$utilities = utils;
|
||||||
Vue.prototype.$settings = settings;
|
Vue.prototype.$settings = settings;
|
||||||
Vue.prototype.$getDefaultLanguage = getDefaultLanguage;
|
Vue.prototype.$getDefaultLanguage = getDefaultLanguage;
|
||||||
Vue.prototype.$getAllLanguages = getAllLanguages;
|
Vue.prototype.$getAllLanguages = getAllLanguages;
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self.$utils.isString(data.result.token)) {
|
if (self.$utilities.isString(data.result.token)) {
|
||||||
self.$user.updateTokenAndUserInfo(data.result);
|
self.$user.updateTokenAndUserInfo(data.result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export default {
|
|||||||
for (let i = 0; i < allAccountCategories.length; i++) {
|
for (let i = 0; i < allAccountCategories.length; i++) {
|
||||||
const accountCategory = allAccountCategories[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);
|
usedAccountCategories.push(accountCategory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -98,7 +98,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.accounts = self.$utils.getCategorizedAccounts(data.result);
|
self.accounts = self.$utilities.getCategorizedAccounts(data.result);
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
self.loading = false;
|
self.loading = false;
|
||||||
|
|
||||||
@@ -127,7 +127,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.accounts = self.$utils.getCategorizedAccounts(data.result);
|
self.accounts = self.$utilities.getCategorizedAccounts(data.result);
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
done();
|
done();
|
||||||
|
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ export default {
|
|||||||
self.loading = false;
|
self.loading = false;
|
||||||
const data = response.data;
|
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', () => {
|
self.$alert('Unable to get current two factor authentication status', () => {
|
||||||
router.back();
|
router.back();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -242,11 +242,11 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self.$utils.isString(data.result.newToken)) {
|
if (self.$utilities.isString(data.result.newToken)) {
|
||||||
self.$user.updateToken(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);
|
self.$user.updateUserInfo(data.result.user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user