01 2025 档案

vue3 pinia 状态管理 pinia-plugin-persistedstate持久化
摘要:导入 pinia pinia-plugin-persistedstate 创建 pinia 实例 const piniaInstance = createPinia() 使用 piniaInstance.use(piniaPluginPersistedstate) import { createAp 阅读全文

posted @ 2025-01-30 15:00 是水饺不是水饺 阅读(15) 评论(0) 推荐(0) 编辑

vue3 vuex typescript 组合式风格 持久化 vuex-persist
摘要:car.ts 文件 import type { Module, ActionTree, MutationTree, GetterTree } from 'vuex' interface ICar3Root { } interface ICar3 extends ICar3Root { Price:n 阅读全文

posted @ 2025-01-30 11:05 是水饺不是水饺 阅读(3) 评论(0) 推荐(0) 编辑

vue2 中 vuex的使用
摘要:目录文件夹是脚手架 默认生成 index.ts 文件 代码 导入Vue Vuex 然后使用 Vue.use(Vuex) 导出 new Vuex.Store Store对象 import Vue from 'vue' import Vuex from 'vuex' import catStore fr 阅读全文

posted @ 2025-01-29 18:09 是水饺不是水饺 阅读(9) 评论(0) 推荐(0) 编辑

Axios Vuex简介
摘要:Vue和Axios的结合使得前端开发更加方便和高效。以下是对Vue中Axios的详细介绍: 一、Axios简介 Axios是一个基于Promise的HTTP库,用于浏览器和node.js中,Vue官方也推荐使用它作为HTTP库。它简化了前端与后端的通信,并提供了一系列便捷的方法来发送HTTP请求(G 阅读全文

posted @ 2025-01-22 11:10 是水饺不是水饺 阅读(16) 评论(0) 推荐(0) 编辑

element plus
摘要:el-menu 出现滚动条 使用 样式 去掉 .el-aside::-webkit-scrollbar { display: none; } 修改 el 样式 需要新建 一个单独样式文件 或者 <style> </style> 标签 有scope 可能会造成 不起作用 阅读全文

posted @ 2025-01-21 22:20 是水饺不是水饺 阅读(10) 评论(0) 推荐(0) 编辑

vue 3 props $parent $root inject 使用
摘要:子组件 <template> <div> <h1>props 调用 {{ props.propmsg }}</h1> <h1>$parent 调用 {{ GetParent($parent) }}</h1> <h1>$root 调用 {{ GetRoot($root) }}</h1> <h1>inj 阅读全文

posted @ 2025-01-17 23:09 是水饺不是水饺 阅读(9) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示