Authored by yyq

fix appversion

... ... @@ -17,7 +17,14 @@ const setStatusBar = (width, height, store) => {
height: statusBar.statusBarHeight
});
if (version(cookie.get('app_version'),' 6.9.2') >= 0) {
function getAppVersion(str, split) {
const match = str.match(new RegExp('(^|)app_version=([^' + split + ']*)(' + split + '|$)'));
return match && match.length ? match[2] : '';
}
const appVersion = getAppVersion(document.cookie, ';') || getAppVersion(location.href, '&');
if (version(appVersion,' 6.9.2') >= 0) {
statusBar.statusBarStatus = true;
store && store.commit('SET_STATUS_BAR_STATUS', {status: true});
}
... ...