18 lines
420 B
TypeScript
18 lines
420 B
TypeScript
import { PropsWithChildren } from 'react';
|
|
import { useLaunch } from '@tarojs/taro';
|
|
import 'taro-ui/dist/style/index.scss';
|
|
import './app.scss';
|
|
import { getLocaleData } from './service/localeData';
|
|
|
|
function App({ children }: PropsWithChildren<any>) {
|
|
useLaunch(() => {
|
|
console.log('App launched.');
|
|
getLocaleData();
|
|
});
|
|
|
|
// children 是将要会渲染的页面
|
|
return children;
|
|
}
|
|
|
|
export default App;
|