摘要: https://blog.csdn.net/weixin_39289696/article/details/128850498 阅读全文
posted @ 2024-02-21 15:23 bule蓝色 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Vue介绍 介绍Vue Vue是一套用于构建用户界面的渐进式框架。与其他大型框架不同的是,Vue被设计为可以自底向上逐层应用。Vue的核心库只关注视图层,不仅易于上手,还便于与第三方库或既有项目整合。 MVVM(Model-View-ViewModel)架构 View:视图层(UI用户界面) Vie 阅读全文
posted @ 2023-10-20 18:19 bule蓝色 阅读(657) 评论(0) 推荐(0) 编辑
摘要: windows中,nvm安装后在git bash 中不可用的话,是需要重启电脑的,因为nvm安装添加了系统环境!!!! 查看所有网络可以安装的版本 nvm list available 选择一个版本安装 nvm install 18.18.2 使用这个版本 nvm use 18.18.2 查看已经安 阅读全文
posted @ 2023-10-17 10:48 bule蓝色 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1.在setState中传递的值名字相同可省略前缀 this.state={temperature:'',scale:'c'} handleChange=(temperatue)=>{ this.setState=({scale:'f',temperatue}) } handleChange1=(t 阅读全文
posted @ 2023-01-13 17:12 bule蓝色 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 创建项目 npm create vite@latest demo 配置环境变量 vite 提供了开发模式和生产模式 这里我们可以建立 4 个 .env 文件,一个通用配置和三种环境:开发、测试、生产。 env文件中的变量名建议以VITE_APP开头,和vue cli中的VUE_APP相同 ,用法也一 阅读全文
posted @ 2022-11-23 18:23 bule蓝色 阅读(1245) 评论(0) 推荐(0) 编辑
摘要: ###git 操作 git init git remote add origin https://#.git git pull origin fillcourse --allow-unrelated-histories git add -A git commit -m "init" git bran 阅读全文
posted @ 2022-11-23 18:22 bule蓝色 阅读(10) 评论(0) 推荐(0) 编辑
摘要: preprocessorOptions: { scss: { additionalData: `@use "./src/assets/scss/style.scss" as *;@use "./src/assets/scss/index.scss" as *;@use "./src/assets/s 阅读全文
posted @ 2022-10-25 14:09 bule蓝色 阅读(423) 评论(0) 推荐(0) 编辑
摘要: pinia 简单使用 /store/modules/user import { defineStore } from 'pinia' /** * useStroe 可以是任意命名 * 第一个参数是应用程序中 store 的唯一 id */ export const userStroe = defin 阅读全文
posted @ 2022-10-19 17:56 bule蓝色 阅读(1108) 评论(1) 推荐(0) 编辑
摘要: ts中引入path模块出错 Cannot find module 'path' or its corresponding type declarations. 解决方法 第一步 npm install -D @types/node 第二步 在tsconfig.json中添加 "compilerOpt 阅读全文
posted @ 2022-10-19 11:09 bule蓝色 阅读(2564) 评论(0) 推荐(0) 编辑
摘要: state:vuex的数据中心,相当于vue中的data. getter:返回对state数据的装饰,相当于vue中的computed。例如:返回格式化的时间,返回多个state数据的计算结果。 阅读全文
posted @ 2022-07-29 11:30 bule蓝色 阅读(307) 评论(0) 推荐(0) 编辑