logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue-cli 本地运行http://localhost:8080报404错误

查看config/index.js里面的文件,dev: {assetsPublicPath: '/',host: 'localhost',port: 8080,}确保dev下面这三项正确,就可以正确运行http://localhost:8080

Ant Design Upload listType=“picture-card“ 实现多图上传以及点击预览图片封装

用户可以上传图片并在列表中显示缩略图,当上传照片数到达限制后,上传按钮消失。点击图片打开图片预览弹框。在使用的地方引入组件,组件在传图后会返回图片数组。import React, { useState, useEffect } from 'react';import { Upload, Modal } from 'antd';import { PlusOutlined } from '@ant-d

vite项目在jenkins自动打包报错:failed to load config from ../vite.config.js You installed esbuild on

vite项目在jenkins自动打包报错找不到esbuild-linux-64在window环境开发用的找不到esbuild-windows-64,在linux环境构建需要使用esbuild-linux-64,找不到esbuild-linux-64就会报错实际报错:error during build:11:21:11 Error:11:21:11 You installed esbuild on

JSON的特点和优势

检测变化的注意事项受现代JavaScript的限制(以及 废弃Object.observe), Vue不能检测到对象属性的添加或删除。 由于vue会在初始化实例时对属性执行getter/setter转化过程,所以属性必须在data对象上存在才能让vue转换它,这样才能让它是响应的。例如:var vm = new Vue({data:{num:1}...

vue中用装饰器报错:Parsing error: Decorators cannot be used to decorate object literal properties

报错信息:error: Parsing error: Decorators cannot be used to decorate object literal properties解决办法:在.eslintrc.js文件加入legacyDecorators: true就可以支持装饰器的写法了parserOptions: {// 解析器parser: 'babel-eslint',ecmaFeatu

vue项目依赖升级报错处理

1.依赖升级后遇到的问题由autoprefixer版本引起的 warning:Second Autoprefixer control comment was ignored. Autoprefixer applies control comment to whole block, not to next rules解决方法:// 将样式中像下面的写法/* autoprefixer: off */.

vue-i18n的9以上的版本中@被用作特殊字符处理,直接用会报错

国际化使用 "validation.regExp.name": "仅允许输入字母、数字与_.@字符"报如下错误Message compilation error: Invalid linked format1|仅允许输入字母、数字与_.@字符Message compilation error: Unexpected lexical analysis in token: '字符'1|仅允许输入字母、

用this.$route.meta.title直接修改title不更新解决方案

在vue里面直接修改this.$route.meta.title值,页面title并不改变,解决方法是强制刷新页面this.$route.meta.title = data.name;this.$router.replace({query: {temp: Date.now()//必有...//页面其他参数}});...

#vue.js
vue-cli 本地运行http://localhost:8080报404错误

查看config/index.js里面的文件,dev: {assetsPublicPath: '/',host: 'localhost',port: 8080,}确保dev下面这三项正确,就可以正确运行http://localhost:8080

运行vue报错There are multiple modules with names that only differ in casing.

There are multiple modules with names that only differ in casing.This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.Use equal casing. Compare these module i..

    共 20 条
  • 1
  • 2
  • 请选择