随笔分类 - vue
vue的一些知识点
摘要:简单暴力的方法解决,卸载所有,清除缓存,再来一次 npm uninstall -g vue npm uninstall -g vue-cli npm uninstall -g @vue/cli npm cache clean --force npm install -g @vue/cli 海量IT资
阅读全文
摘要:运行vue项目时,node-sass报错的解决方法 cnpm install node-sass@latest 安装最新的node-sass 可以进行解决
阅读全文
摘要:Document 又相当于 如果给路由对象上添加props等于true则对应的路由组件里就可以接收props props: { params参数: 数据类型 } 如果路由对象上的props是对象,则会按照原样添加给路由组件 { path: '/', comp...
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv
阅读全文
摘要:import axios from 'axios' console.log(process.env.NODE_ENV) const baseURL = process.env.NODE_ENV === 'development' ? 'http://localhost:3000' : 'http://www.xxx.com' axios.defaults.baseURL = `${baseUR...
阅读全文
摘要:Document ` 使用组件时 {{scope.a}} {{scope.b}} 还可以使用解构赋值 {{a}} {{b}} --> {{o.movie}} {{o.$...
阅读全文
摘要:/* 为什么会有命名空间 因为getter添加不管是哪个模块的,都会直接被添加到 this.$store.getters中,如果两个名字相同,所以需要添加 namespaced: true 对应模块的getter就会变成"模块名/getter名" 模块中的getter里的第一个参...
阅读全文
摘要:state<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv
阅读全文
摘要:Document 组件之间的通信 Document --> --> -->
阅读全文

浙公网安备 33010602011771号