webpack 打包出来一些空文件,如何剔除?(vue-cli@4)
config.optimization.splitChunks({ automaticNameDelimiter: '-',});这个在什么地方能剔除嘛?比如说 css-loader 还是 vue-loader 有现成的配置参数嘛?vue-loader: "15.9.3",根据排查,并不能解决我的问题/node_modules/vue-loader/lib/codegen/style...
2024-03-04idea中使用junit为什么需要通过plugin的方式,直接在pom.xml中添加依赖不行吗?
如题,经测试,pom.xml中添加junit的依赖,@Test注解无法使用。我百度了教程,都是通过idea的plugin来添加junit。我不明白这个有区别吗?为什么必须通过idea的plugin功能?回答:如题,经测试,pom.xml中添加junit的依赖,@Test注解无法使用。pom文件,项目结构,代码怎么写的发一下?是不是junit的scope是test,@Test是在main的代码里写...
2024-03-04在尝试使用uniapp转抖音小程序出现的问题
题目描述在使用uniapp尝试跑项目时, 程序给我报出以下错误:14:17:54.103 ERROR TypeError: Path must be a string. Received undefined14:17:54.125 TypeError: Path must be a string. Received undefined14:17:54.125 at assertPa...
2024-03-04vue router history模式 输入路径直接跳转首页?
如何自动跳转项目的首页目前得手动输入xxx.com/admin/login才能跳转到login页面,如何在输入xxx.com/admin的情况下自动跳转login页面呢src/router/index.jsconst router = new Router({ mode:'history', base:'/admin/',})config/index.jsbuild: { // ...
2024-03-04nuxt如何在vuex的actions中使用axios请求?
我正在做在一个从SPA转为SSA的项目,现在遇到一个问题:无法使用已经设置了拦截器的nuxt/axios在actions里请求。之前在SPA的请求,直接在actions最前面import已经做好拦截器的axios即可:import api from '@/plugins/axios';export const actions = { getUser: async function ({...
2024-03-04关于rocketmq消息顺序消费的几点疑惑?
了解rocketmq的同学都知道 broker 和queue ,消息其实是存在queue中的。一个broker其实类似于一个rocketMq服务。我们在rocketmq可视化控制台创建topic的时候,是可以选择,你这个topic要创建多少个queue的。queue的大小也直接影响到消费者的消费能力。比如你topic 有4个queue 那么就可以支持4个消费者来消费。一对一如果你有两个消费者...
2024-03-04错误提示:ValueError: I/O operation on closed file.,是啥原因?
elif shu=='3':slie='配送数量'wb=openpyxl.load_workbook(path)wb.save(path)sheet_name="sheet0"all_dict = {}all_num = 0num = 0content = pd.read_excel(path, sheet_name=sheet_name)print(content.head())data...
2024-03-04Vue2按需引入antd中的message使用后报错
报错Cannot read property 'success' of undefined,求解!!!回答:https://www.antdv.com/docs/vu...import Vue from 'vue';import { Button, message } from 'ant-design-vue';import App from './App';Vue.config.pro...
2024-03-04vuepress里使用eslint 对.vuepress下的文件不生效?
我在vuepress项目里加上了eslint发现对在.vuepress目录下的文件无效 比如:config.js然后我在.vuepress同级新建了一个src目录发现在里面的文件eslint是生效的lint配置:.eslintignoredistnode_modules.eslintrc.jsmodule.exports = { root: true, env: { ...
2024-03-04vue怎样使用变量作为修饰符?
// 比如遇到如下情况,我该如何使age的number修饰符在循环中生效呢?<template><form> <div class="form-item" v-for="item in list" :key="item.prop"> <label>{{ item.label }}</label> <input v-model="form[item.prop]" /> ...
2024-03-04