a web for my friends and myself
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
See Vite Configuration Reference.
npm install
npm run dev
npm run build
Lint with ESLint
npm run lint
- fixed组件:100
- 蒙版:301
- nav:302
- header:303
- popup: 600
- around black line: 1000
- 前端的数据都为及时存储,设计保存为向后端请求,所以前端不需要做save与temporary区分
- store 中的const常量,比如字典defaultPages,defaultUserInfo,会同步改变,尽管有JSON序列化.....
- 变量的相等判断用的全等,注意数字与字符的区别,route.query获得的为字符.
- 设置独立的Message Store用来规范提示信息
- 用户信息的编辑除了头像都整合到单独的窗口中
- 所有的store初始化都放在index.vue的onMounted中
const logout = async () => {
try {
logOutAPI()
} catch (e) {
console.log(e)
} finally {
router.push('/login')
consol.log(defaultUserInfo) 添加这一语句就可以重置defaultUserInfo,若注释则....
userInfo.value = defaultUserInfo
friends.value = defaultFriends
userDiary.value = defaultDiary
diaryStore.setDiary()
diaryStore.setPages()
console.log('ok')
}
}