会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
菜鸟需勤奋
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
22
23
24
25
26
27
28
29
30
···
47
下一页
2022年12月2日
async和await关键字
摘要: async:表示函数是异步执行, await:表示当前函数先执行,执行完之后,再执行其他函数 await用于等待一个promise对象,它只能在async函数中使用. async函数,会返回一个Promise对象,可以用.then调用async函数中return的结果 async function
阅读全文
posted @ 2022-12-02 22:48 iTao0128
阅读(82)
评论(0)
推荐(0)
2022年11月30日
vuecli3项目集成到springboot
摘要: 路径配置 当springboot中设置项目访问路径 server.servlet.context-path=/demo vue项目中vue.config.js需配置publicPath module.exports = { transpileDependencies: true, configure
阅读全文
posted @ 2022-11-30 21:49 iTao0128
阅读(378)
评论(0)
推荐(0)
2022年11月29日
vuecli3配置文件路径别名
摘要: vue.config.js文件中 module.exports = { configureWebpack: { resolve: { alias: { 'assets': '@/assets', 'common': '@/common', 'components': '@/components',
阅读全文
posted @ 2022-11-29 11:28 iTao0128
阅读(92)
评论(0)
推荐(0)
2022年11月28日
Git SSH密钥删除与创建
摘要: 1、首页:查看本地是否有.ssh文件找到 Git Bash 打开后 运行 cd ~/.ssh 查看是否有该文件如果本地有ssh密钥的话会有id_rsa、id_rsa.pub、known_hosts等文件。如果没有的话运行上步骤命令就会找不到文件的提示2、也可以删除ssh复制并运行 rm -rf ~/
阅读全文
posted @ 2022-11-28 22:36 iTao0128
阅读(1973)
评论(0)
推荐(0)
新建项目关联远程仓库
摘要: 通过vuecli3创建项目 vue create mall 新建远程仓库 终端中执行命令 git remote add origin git@github.com:xxx/mall.git git push -u origin main
阅读全文
posted @ 2022-11-28 22:34 iTao0128
阅读(41)
评论(0)
推荐(0)
2022年11月27日
axios的封装
摘要: 新建network文件夹及request.js import axios from 'axios' export function request(config){ //创建axios实例 const instance = axios.create({ baseURL: 'http://123.20
阅读全文
posted @ 2022-11-27 22:54 iTao0128
阅读(31)
评论(0)
推荐(0)
axios请求
摘要: 安装 npm install axios --save axios基本使用 axios({ url: 'http://123.207.32.32:8000/home/multidata', method: 'get'//不写默认get方式 }).then(res => { console.log(r
阅读全文
posted @ 2022-11-27 19:43 iTao0128
阅读(76)
评论(0)
推荐(0)
vuex-store文件夹的目录组织
摘要:
阅读全文
posted @ 2022-11-27 17:56 iTao0128
阅读(26)
评论(0)
推荐(0)
数组、对象的解构
摘要: const obj = { name: '张三', age: 20, address: 'abc' } const {name,address} = obj; console.log(name); console.log(address); 数组的解构 const names = ["张三","李四
阅读全文
posted @ 2022-11-27 17:41 iTao0128
阅读(11)
评论(0)
推荐(0)
vuex-actions
摘要: 示例:修改state中info对象的name值 state: { info: {id: 1003, name: "kobe" } } actions: {//异步请求、方法写在actions里 aUpdateInfo(context,value){//{commit,state} setTimeou
阅读全文
posted @ 2022-11-27 11:53 iTao0128
阅读(25)
评论(0)
推荐(0)
上一页
1
···
22
23
24
25
26
27
28
29
30
···
47
下一页
公告