You've already forked template-MP
新增:全量优化
This commit is contained in:
30
common/constants/app.js
Normal file
30
common/constants/app.js
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* 应用相关常量
|
||||
*/
|
||||
|
||||
// 应用信息
|
||||
export const APP_NAME = '小程序模板'
|
||||
export const APP_VERSION = '1.0.0'
|
||||
|
||||
// 页面路径常量
|
||||
export const PAGE_PATHS = {
|
||||
INDEX: '/pages/index/index',
|
||||
WELCOME: '/subPages/welcome/index',
|
||||
LOGIN: '/pages/login/login', // 示例路径
|
||||
REGISTER: '/pages/register/register' // 示例路径
|
||||
}
|
||||
|
||||
// 存储键名常量
|
||||
export const STORAGE_KEYS = {
|
||||
TOKEN: 'token',
|
||||
USER_INFO: 'userInfo',
|
||||
THEME: 'theme',
|
||||
LANG: 'language'
|
||||
}
|
||||
|
||||
// 事件常量
|
||||
export const EVENTS = {
|
||||
USER_LOGIN: 'userLogin',
|
||||
USER_LOGOUT: 'userLogout',
|
||||
THEME_CHANGE: 'themeChange'
|
||||
}
|
||||
Reference in New Issue
Block a user