.eslintrc.js如何禁用eslint
在 .eslintrc.js 文件中,你可以将所有规则设置为 “off”,这样 ESLint 就不会检查任何问题。
javascript
module.exports = {
"rules": {
"*": "off"
}
};
Idea导入项目后代码灰色或者爆红
- 这个问题一般都是Maven没有配置正确的问题,解决办法如下
- 配置上阿里云镜像
3、也可以在D:\dev\app\maven\maven3.0.4\conf\settings.xml下配置全局的镜像
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
4、如果还是爆红,就按以下步骤修改
vue一个页面引入多个Modal
<ChongzhiModal @register="chongzhiModal" @success="handleSuccess"></ChongzhiModal>
<CzRecordModal @register="recordModal"></CzRecordModal>
/**
* 充值
*/
const [chongzhiModal, {openModal: openCzModal}] = useModal();
function chongzhi(users) {
openCzModal(true, {
isUpdate: false,
showFooter: true,
users: users
});
}
/**
* 充值记录弹窗
*/
const [recordModal, {openModal: openRecordModal}] = useModal();
function handleRecord(users) {
openRecordModal(true, {
isUpdate: false,
showFooter: true,
users: users
});
}
修改弹窗取消按钮文字,隐藏确认按钮
<BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose title="充值记录"
:width="1500"
:cancelText="'关闭'"
:okButtonProps="{ style: { display: 'none' } }">
<BasicTable @register="registerTable">
</BasicTable>
</BasicModal>
BasicTable 发起请求的时候如何附带参数
const {prefixCls, tableContext, onExportXls, onImportXls} = useListPage({
tableProps: {
api: list,
beforeFetch: (params) => {
params['batch'] = batch.value;
return params;
},
},
})
隐藏BaseTable操作栏
const {prefixCls, tableContext, onExportXls, onImportXls} = useListPage({
tableProps: {
api: list,
beforeFetch: (params) => {
params['batch'] = batch.value;
return params;
},
actionColumn: {
width: 120,
fixed: 'right'
},
showActionColumn: false
},
})
BaseTable关闭和现实工具栏
<BasicTable @register="userRegister" ref="tableRef" v-bind="getBindValue" :searchInfo="searchInfo"
:api="getTableList" :beforeFetch="beforeFetch" :rowSelection="rowSelection"
:showTableSetting="true"></BasicTable>
BaseTable隐藏充值列表的操作栏
actionColumn: {
width: 120,
fixed: 'right',
ifShow: false
}
‘yarn’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
-
卸载 npm uninstall yarn -g
-
安装 npm install yarn (最好不要用别的安装命令,会没效果)
-
添加环境变量:系统变量path添加 C:\Users\bokeyuan\node_modules\yarn\bin
-
重新打开cmd执行:yarn -v 查看版本号
Idea设置代理
Appearance & Beahvior -> System Settings -> HTTP Proxy,选择手动配置代理,输入IP和端口即可。ip是127.0.0.1,端口如下
npm和yarn设置镜像源
// 查询源
yarn config get registry
// 更换国内源
yarn config set registry https://registry.npmmirror.com
// 恢复官方源
yarn config set registry https://registry.yarnpkg.com
// 删除注册表
yarn config delete registry
// 查询源
npm config get registry
// 更换国内源
npm config set registry https://registry.npmmirror.com
// 恢复官方源
npm config set registry https://registry.npmjs.org
// 删除注册表
npm config delete registry
pnpm 不是内部或外部命令
环境变量中直接添加到path中
nginx的配置路径
解决jeecgboot修改了BaseTable底层的useSelectBiz.ts后造成网络请求失败的问题
修改jeecgboot的labelWidth
{
label: '每月临时用餐上限',
labelWidth: '130px',
field: 'linshi',
component: 'Input',
componentProps: {
style: {
width: '80%',
},
},
span: 10,
}
运维服务费是开发费的10%
idea的Terminal输出中文乱码,需要再vm options上配置什么才能够解决这个问题?
-Dfile.encoding=UTF-8
查询端口占用情况,并kill掉
netstat -ano | findstr :8080
taskkill /pid 10316 /f