摘要: # 通过 npm 安装 npm i vant -S 安装完配置 babel.config.js module.exports = { presets: ['@vue/app'], plugins: [ 'lodash', [ 'import', { libraryName: 'vant', libr 阅读全文
posted @ 2020-02-27 18:03 ThisCall 阅读(1297) 评论(0) 推荐(0) 编辑
摘要: const Tabbar = () => import('@/components/Tabbar'); export default [ { path: '/', name: 'home', components: { //default与tabbar 等是同级路由模块,可以按命名控制展示与否 de 阅读全文
posted @ 2020-02-27 16:42 ThisCall 阅读(256) 评论(0) 推荐(0) 编辑
摘要: npm i --save-dev node-sass sass-loader 二、手动安装如果在创建项目没有选择CSS 预处理器,我们也可以手动安装sass-loader以及 node-sass来集成scss。 npm install -D sass-loader node-sass npm ins 阅读全文
posted @ 2020-02-27 14:17 ThisCall 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 最原始没有任何干扰的路由拦截 其他资料 import Vue from 'vue'; import Router from 'vue-router'; import home from './home'; Vue.use(Router); const RouterModel = new Router 阅读全文
posted @ 2020-02-27 13:29 ThisCall 阅读(1793) 评论(0) 推荐(0) 编辑
摘要: var vm = new Vue({ el: '#example', data: { message: 'Hello' }, computed: { // 计算属性的 getter reversedMessage: function () { // `this` 指向 vm 实例 return th 阅读全文
posted @ 2020-02-27 11:25 ThisCall 阅读(3041) 评论(0) 推荐(0) 编辑
摘要: Vue-router 1 router-link <router-link :to="{ path: '/hello', component: HelloWorld }">hello</router-link> <router-link :to="{ path: '/user/useradd' }" 阅读全文
posted @ 2020-02-27 10:03 ThisCall 阅读(3415) 评论(0) 推荐(1) 编辑