会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小白字太白
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
16
下一页
2022年11月26日
关于错误[vue-router] route config "component" for path: /Home cannot be a string id. Use an actual component instead.
摘要: { path:"/Home", component:Home }, 代码中 component的配置不能 写成字符串形式,如果写了就会报如上错误,去掉引号即可
阅读全文
posted @ 2022-11-26 11:13 小白字太白
阅读(693)
评论(0)
推荐(0)
2022年11月24日
webpack多入口配置
摘要: const path=require("path"); const HtmlWebpackPlugin=require("html-webpack-plugin") module.exports={ entry:{ app:'./src/app.js', main:'./src/main.js' }
阅读全文
posted @ 2022-11-24 11:05 小白字太白
阅读(120)
评论(0)
推荐(0)
2022年11月23日
webpack中的配置文件 都写好了的
摘要: webpack.dev.js const path=require("path")//nodejs核心模块 专门用来处理路径问题 const ESLintPlugin = require('eslint-webpack-plugin'); const HtmlWebpackPlugin = requ
阅读全文
posted @ 2022-11-23 17:00 小白字太白
阅读(30)
评论(0)
推荐(0)
优化加载速度的一个小技巧
摘要: 配置打包文件中 //小于10kb转化直接渲染的base64格式 在 rules 中加入如下配置 { //小于10kb转化直接渲染的base64格式 test: /\.(png|jpe?g|gif|webp)$/, type: 'asset', parser: { dataUrlCondition:
阅读全文
posted @ 2022-11-23 09:31 小白字太白
阅读(23)
评论(0)
推荐(0)
webpack中的配置文件
摘要: const path=require("path")//nodejs核心模块 专门用来处理路径问题 module.exports={ entry:"./src/main.js", //输出 output:{ // 文件输出路径 // __dirname nodejs的变量 ,代表当前文件的文件夹目录
阅读全文
posted @ 2022-11-23 08:36 小白字太白
阅读(40)
评论(0)
推荐(0)
2022年11月16日
vuex调用后台数据
摘要: //该文件用于创建vuex中的store //引入vuex import Vue from 'vue' import Vuex from 'vuex' import axios from 'axios'; import { nanoid } from 'nanoid'; //使用插件 Vue.use
阅读全文
posted @ 2022-11-16 15:30 小白字太白
阅读(102)
评论(0)
推荐(0)
vuex组件之间互相通信
摘要: <template> <div class="count"> <h2 > 当前求和为 :{{sum}}</h2> <h3 > 当前求和放大十倍为为 :{{bigSum}}</h3> <h3 > 我在:{{address}} 学习:{{subject}}</h3> <h3 > 下方组件的总人数 : {
阅读全文
posted @ 2022-11-16 14:18 小白字太白
阅读(56)
评论(0)
推荐(0)
vuex中的mapMutations和mapActions
摘要: <template> <div class="count"> <h2 > 当前求和为 :{{sum}}</h2> <h3 > 当前求和放大十倍为为 :{{bigSum}}</h3> <h3 > 我在:{{address}} 学习:{{subject}}</h3> <select v-model.nu
阅读全文
posted @ 2022-11-16 10:33 小白字太白
阅读(79)
评论(0)
推荐(0)
vuex中的mapState和mapGterrs
摘要: <template> <div class="count"> <h2 > 当前求和为 :{{sum}}</h2> <h3 > 当前求和放大十倍为为 :{{bigSum}}</h3> <h3 > 我在:{{address}} 学习:{{subject}}</h3> <select v-model.nu
阅读全文
posted @ 2022-11-16 10:06 小白字太白
阅读(22)
评论(0)
推荐(0)
vuex中的getters
摘要: 当state中的数据需要经过加工后在使用 //该文件用于创建vuex中的store //引入vuex import Vue from 'vue' import Vuex from 'vuex' //使用插件 Vue.use(Vuex); //猪备actions--用于响应组件中的动作 const a
阅读全文
posted @ 2022-11-16 09:18 小白字太白
阅读(165)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
16
下一页
公告