load license content from LICENSE file when build app

This commit is contained in:
MaysWind
2021-04-05 18:26:18 +08:00
parent a570a51bdf
commit d8b6091dcc
4 changed files with 29 additions and 30 deletions
+5 -1
View File
@@ -172,7 +172,11 @@ const i18n = new VueI18n(getI18nOptions());
Vue.prototype.$version = version.getVersion();
Vue.prototype.$buildTime = version.getBuildTime();
Vue.prototype.$licenses = licenses.getLicenses();
Vue.prototype.$licenses = {
license: licenses.getLicense(),
thirdPartyLicenses: licenses.getThirdPartyLicenses()
};
Vue.prototype.$constants = {
api: api,