开发问题笔记

.eslintrc.js如何禁用eslint

在 .eslintrc.js 文件中,你可以将所有规则设置为 “off”,这样 ESLint 就不会检查任何问题。

javascript
module.exports = {
  "rules": {
    "*": "off"
  }
};

Idea导入项目后代码灰色或者爆红

  1. 这个问题一般都是Maven没有配置正确的问题,解决办法如下
    在这里插入图片描述
  2. 配置上阿里云镜像
    在这里插入图片描述
    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’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。

  1. 卸载 npm uninstall yarn -g

  2. 安装 npm install yarn (最好不要用别的安装命令,会没效果)

  3. 添加环境变量:系统变量path添加 C:\Users\bokeyuan\node_modules\yarn\bin

  4. 重新打开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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值