no-image

Vue3 下 类似 Flutter Getx 状态管理插件构想 get for vue3

功能概要:
集 路由、状态管理、本地存储、依赖注入于一体。
入口:

// Vue3
const App = createApp({
    mounted () {
        global.init();
    },
    ...
})

// Get for vue3
const App = createGetApp({
    title: C.appName,
    initialRoute: AppPages.initial,
    initialBinding: InitialBinding(),
    getPages: AppPages.routes,
    theme: AppTheme.lightTheme,
    darkTheme: AppTheme.darkTheme,
    themeMode: Get.put(ThemePref()).themeMode,
    debugShowCheckedModeBanner: false,
});