随笔分类 - Vue
摘要:
阅读全文
摘要:
阅读全文
摘要:1. vt vue3 template "vue3 template": { "prefix": "vt", "body": [ "<script setup>", " $1", "</script>", "", "<template>", " <div>", " $2", " </div>", &
阅读全文
摘要:1. 响应式数据 2. 箭头函数 // 箭头函数后面不加大括号,默认只能有一行代码,默认return; const doubleCount1 = computed(() => count.value * 2) // 箭头函数后面加大括号,默认没有return; const doubleCount2
阅读全文
摘要:
阅读全文
摘要: 
阅读全文
摘要:1. 新建VUE项目局域网无法访问 修改 package.json文件 # 重新初始化 npm install # 启动项目 npm run dev VITE v3.2.2 ready in 323 ms ➜ Local: http://10.105.212.1:5173/ ➜ Network: h
阅读全文
摘要:1. vite创建vue环境 [root@Python Vue]# npm init vite@latest Need to install the following packages: create-vite@3.2.0 Ok to proceed? (y) ✔ Project name: …
阅读全文
摘要:1. 下载地址 curl -O https://nodejs.org/dist/v16.18.0/node-v16.18.0-linux-x64.tar.xz 2. 安装部署 VERSION=v16.18.0 DISTRO=linux-x64 mkdir -p /usr/local/lib/node
阅读全文
摘要:# 安装git yum install -y git # 配置git git config --global user.name "<名称>" git config --global user.email "<邮箱>" # 查看git配置 git config --list # 添加远端仓库 git
阅读全文
摘要:下载地址 https://github.com/nvm-sh/nvm/archive/refs/tags/v0.38.0.tar.gz tar zxvf nvm-0.38.0.tar.gz mv nvm-0.38.0 /usr/local/ ln -s /usr/local/nvm-0.38.0 ~
阅读全文
摘要:安装组件 npm WARN ajv keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. npm WARN bootstrap@
阅读全文
摘要:进入项目目录 安装BootStrap npm WARN ajv keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. npm W
阅读全文
摘要:$ vue init webpack myweb Command vue init requires a global addon to be installed. Please run npm install g @vue/cli init and try again. $ npm install
阅读全文
摘要:ESLint抛错(MacOS) TypeError: this.cliEngine is not a constructor
阅读全文
摘要:运行环境MacOS 执行过程 Vue CLI v4.2.3 ✨ Creating project in /Users/Leo/Dropbox/Tutorial/VUE/vue admin. 🗃 Initializing git repository... ⚙️ Installing CLI plu
阅读全文
摘要:$ vue ui 🚀 Starting GUI... 🌠 Ready on http://localhost:8000 使用IP访问 vue ui -H 10.0.0.1 END
阅读全文
摘要:安装nodejs 安装淘宝镜像 安装webpack 安装vue cli END
阅读全文
摘要:watch 用于侦听变量的变化,然后进行相应的处理 尽量不使用watch使用computed代替 示例源代码 END
阅读全文
摘要:computed 处理元数据,便于进行二次利用(比如:消费税自动计算功能) 源代码 END
阅读全文
浙公网安备 33010602011771号