上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 48 下一页
摘要: 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 阅读(2029) 评论(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 阅读(49) 评论(0) 推荐(0)
摘要: 新建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 阅读(38) 评论(0) 推荐(0)
摘要: 安装 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 阅读(89) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-11-27 17:56 iTao0128 阅读(28) 评论(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 阅读(14) 评论(0) 推荐(0)
摘要: 示例:修改state中info对象的name值 state: { info: {id: 1003, name: "kobe" } } actions: {//异步请求、方法写在actions里 aUpdateInfo(context,value){//{commit,state} setTimeou 阅读全文
posted @ 2022-11-27 11:53 iTao0128 阅读(33) 评论(0) 推荐(0)
摘要: 有时候,需要从store中获取一些state变化之后的数据,这是可以放入getters中 下面例子:获取年龄大于20的学生数据 注: getters默认是不能传递参数的,如果希望传递参数,那么只能让getters本身返回一个函数 阅读全文
posted @ 2022-11-25 22:35 iTao0128 阅读(40) 评论(0) 推荐(0)
摘要: 通过mutations修改state状态 mutations中的方法必须是同步方法 this.$store.commit('mutations中的方法') const store = new Vuex.Store({ state: { counter: 100 }, mutations: { //方 阅读全文
posted @ 2022-11-25 17:42 iTao0128 阅读(37) 评论(0) 推荐(0)
摘要: 安装 npm install vuex --save 创建store文件夹及index.js文件 import Vue from 'vue' import Vuex from 'vuex' //1.安装插件 Vue.use(Vuex) //2.创建对象 const store = new Vuex. 阅读全文
posted @ 2022-11-25 15:52 iTao0128 阅读(31) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 48 下一页