logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

【Vue中的坑】vue项目中动态绑定src不显示图片解决方法

v-for绑定src的数据如下:data() {return {img_src:"…/…/assets/images/mirror-service.png"}}渲染之后,发现图片不显示,上网查找之后发现是应为图片链接是需要通过 require包裹的data() {return {img_src:require("../../assets/images/m...

.prettierrc.json

{"semi": false,"singleQuote": true,"bracketSpacing": true}

vscode Setting配置

{“workbench.iconTheme”: “simple-icons”,“workbench.colorTheme”: “One Dark Pro Bold”,“editor.fontSize”: 13,“workbench.sideBar.location”: “right”,“git.enableSmartCommit”: true,“git.autofetch”: true...

#vscode
vscode. setting配置

vscode. setting配置{"workbench.sideBar.location": "right","workbench.iconTheme": "simple-icons","workbench.colorTheme": "One Dark Pro","eslint.options": {"extensions": [".js", ".vue", ".ts", ".tsx"]},"e

el-cascader 省市数据

//直接定义city.jsconst options = [{"value": "北京市","label": "北京市","children": [{"value": "市辖区","label": "市辖区",}]}, {"value": "天津市","label": "天津市","children": [{"value": "市辖区",

el-cascader省市区 三级数据

export default {areajson: [{value: '110000',label: '北京',children: [{value: '110100',label: '北京市',children: [{ value: '110101', label: '东城区' },{ value: '110102'

vscode提示‘Vetur find `tsconfig.json`/`jsconfig.json`, but they aren‘t in the project root.’

#1 问题1、vetur0.31.0,无法格式化.vue文件2020-12-10 已经发布了 0.31.1 版本(Fix Vetur can’t format),安装新版即可(如果不会安装插件的固定版本,请看最后)。#2 Vetur find tsconfig.json/jsconfig.json, but they aren’t in the project root.0.31.0版本新增了一个

Error: Redirected when going from “/login?redirect=%2Fdashboard“ to “/dashboard“ via a navigation

这个问题困扰很久。之前有看过一个写法// const originalPush = Router.prototype.push// Router.prototype.push = function push(location, onResolve, onReject) {//if (onResolve || onReject)//return originalPush.call(this, loc

configureWebpack和chainWebpack的配置方式

对象写法const path = require("path");function resolve(dir) {return path.join(__dirname, dir)}function getPlugins() {let plugins = []if (process.env.VUE_APP_ENV === 'test') {plugins.push(// 添加插件)}if (proce

Vue_button实现水波纹效果

目录结构:和调用方法index.js:import waves from './waves'const install = function(Vue) {Vue.directive('waves', waves)}if (window.Vue) {window.waves = wavesVue.use(install); // eslint-disable-l...

    共 24 条
  • 1
  • 2
  • 3
  • 请选择