about.page.js
607 Bytes
import yoho from 'yoho';
import interceptClick from 'common/intercept-click';
import HeaderBox from 'component/header.vue';
import Vue from 'vue';
new Vue({
el: '#header',
render: h => h(HeaderBox, {
props: {
title: '关于'
}
})
});
yoho.ready(() => {
const header = Object.assign({}, interceptClick.defaultTitleMap[1]);
header.title.des = '关于';
yoho.updateNavigationBar({
header: header
});
yoho.getAppVersion({}, (version) => {
document.querySelector('.app-version').textContent = `版本信息:${version}`;
});
});