移动端: * 更新系统 Logo; * 显示版本号

dev/timezone
Lei OT 1 year ago
parent 7c7882a67d
commit 9a934f72ae

@ -8,7 +8,7 @@ import 'dayjs/locale/zh-cn'
import { useEffect, useState } from 'react'
import { Outlet, useHref, useNavigate } from 'react-router-dom'
import AppLogo from '@/assets/logo-gh.png'
import AppLogo from '@/assets/highlights_travel_300_300.png'
import '@/assets/App.css'
import 'react-chat-elements/dist/main.css'

@ -45,6 +45,8 @@ function MobileApp() {
return () => window.removeEventListener('load', handleLoad);
}, []);
const __BUILD_VERSION__ = `__BUILD_VERSION__`;
return (
<Layout>
<Header className='header px-2' style={{ position: 'sticky', top: 0, zIndex: 1, width: '100%', background: 'white' }}>
@ -61,10 +63,9 @@ function MobileApp() {
{ type: 'divider' },
{ label: <ClearCache />, key: 'clearcache' },
{ type: 'divider' },
{
label: <Link to='/p/dingding/logout'>退出</Link>,
key: '3',
},
{ label: <Link to='/p/dingding/logout'>退出</Link>, key: '3' },
{ type: 'divider' },
{ label: <>v{__BUILD_VERSION__}</>, key: 'clearcache' },
],
}}
trigger={['click']}>

@ -16,7 +16,7 @@ function ReloadPrompt({ force }) {
onRegistered(r) {
r &&
setTimeout(() => {
console.log('Checking for sw update, onRegistered', `__BUILD_DATE__`, `__APP_VERSION__`);
console.log('Checking for sw update, onRegistered', `__BUILD_DATE__`, `__BUILD_VERSION__`);
r.update();
setInterval(() => {
@ -27,7 +27,7 @@ function ReloadPrompt({ force }) {
onRegisteredSW(swUrl, r) {
r &&
setTimeout(() => {
console.log('Checking for sw update, onRegisteredSW', `__BUILD_DATE__`, `__APP_VERSION__`);
console.log('Checking for sw update, onRegisteredSW', `__BUILD_DATE__`, `__BUILD_VERSION__`);
r.update();
setInterval(() => {

Loading…
Cancel
Save