摘要:
E:\xxx\xxx\xxx\../../../../../../../E:/xxx/xxx/xxx/node_modules/_iview@3.5.4@iview/src/styles/common/iconfont/fonts/ionicons.svg?v=3.0.0 in ./node_mod 阅读全文
摘要:
1 创建 public/config.js 2 index.html 加入 <script type='text/javascript' src='/viewDesignAdmin/config.js?${Math.random().toString(36).substr(2)}'></script 阅读全文
摘要:
router/index.js const router = new Router({ routes, base: '/viewDesignAdmin/', mode: 'history' }) vue.config.js const BASE_URL = process.env.NODE_ENV 阅读全文
摘要:
phpStudy 阅读全文
摘要:
rimraf node_modules 突然不能用了 怀疑是yarn的问题,从环境变量将yarn删掉,能用了 阅读全文
摘要:
this.current = params.page || 1 (前提是params对象一定要存在) 阅读全文
摘要:
export const warning = (str, callback = _ => {}, outCallback = () => {}) => { Modal.warning({ // onOk: callback, onOk: () => { callback(outCallback) }, title: '提示', content: str }) } 阅读全文
摘要:
由于 ant-design-pro 的 mock 是一个单独的服务,所以没有办法整合到一起打包。暂时我是没有找到。 所以解决方案就是不用 mock 。 由于 系统有异步调取,所以一旦有异步调取就会失败,所以也不能有异步。 方案如下 1.删除路由权限 2.删除基本框架异步代码 3.删除基本框架权限代码 阅读全文
摘要:
main.js // 实际打包时应该不引入mock /* eslint-disable */ // if (process.env.NODE_ENV !== 'production') require('@/mock') require('@/mock') // 实际打包时应该不引入mock /* 阅读全文
摘要:
svelte & Polymer Project 阅读全文
摘要:
this.baseInfoList = [...this.baseInfoList] 所有和数组有关的操作,最后一定都展开一次,否则就没有双向绑定!! this.baseInfoList = [...this.baseInfoList] 所有和数组有关的操作,最后一定都展开一次,否则就没有双向绑定! 阅读全文
摘要:
https://www.liaoxuefeng.com/wiki/1022910821149312/1023024381818112 阅读全文
摘要:
1 创建变量 2.合并变量 上面两块都是创建变量部分 下面是页面引用 阅读全文
摘要:
tableZen maxHeight 解决方案 如果数据条数小于N,不进行高度设置,超过N条,直接设置高度,解决原生iview Table 对于右侧固定列,不能计算出正确数值的解决方案 阅读全文
摘要:
webstorm 开新项目 setting 设置@目录别名 add @ (languages & Framewors - Javascript - Webpack 4. setting eslint enable1. svn download2. add npm run dev(check add) 阅读全文
摘要:
重点1: 一但赋值内容,光标会失去,导致光标到第一位 解决方法 设置一个状态位isChange,编辑的时候不进行watch更新,因为emit会自动改变外层的值,触发watch 解决方法2 找回上一次的值进行替换 重点2:div可编辑 contenteditable="true" 重点3:div内只能 阅读全文
摘要:
<Checkbox v-show="!disabledForm" ref="youwubianhuaRef" :value="youwubianhua" @input="youwubianhuaInputHandle">无变化</Checkbox> this.youwubianhua = false this.$refs.youwubianhuaRef.updateModel() 记得nextTi 阅读全文
摘要:
事件缘由:由于城市树会反复调用,所以不用api每次调用,改用数据缓存一次读取,各处使用。然后我把调用的数据放入treeselect,发现组件就崩溃了,但是api读取的数据就没问题。 查看不是props问题,也不是watch问题,因为是个数组,不是属性,所以怀疑一下。 最后发现是数据没有进行过滤导致。 阅读全文
摘要:
两个div,高度都是100% 用 display:flex; 和 min-height 一边撑高了,另一边自动走 阅读全文
摘要:
数组传入 对象的话用{...obj} 对象数组传出 阅读全文
摘要:
{ "dependencies": { "typescript": "^3.6.4" } } 阅读全文
摘要:
react / config\webpack.config.js 编译后去掉map 减小体积 shouldUseSourceMap = false 阅读全文
摘要:
https://reacttraining.com/react-router/web/api/Hooks/uselocation 阅读全文
摘要:
react 装 router yarn add react-router-dom@next 阅读全文
摘要:
git init git add . git commit -m 'init' npm run eject 或者 cnpm run eject 阅读全文
摘要:
module.exports = { root: true, 'extends': [ 'plugin:vue/essential', '@vue/standard' ], rules: { 'object-curly-spacing': ["error", "always"], // allow async-await 'genera... 阅读全文
摘要:
display: flex; justify-content: space-between; align-items: center; 阅读全文
摘要:
import { oneOf, isEmpty } from '@/libs/tools' export const isEmpty = (value) => { if (value == null) { return true } if (isArrayLike(value)) { return !value.length } else if (isPlainO... 阅读全文
摘要:
react build相对目录 "homepage": ".", package.json 阅读全文
摘要:
header.php comm.php select.php update.php insert.php delete.php 字符集: utf8 -- UTF-8 Unicode 排序规则: utf8_general_ci 阅读全文
摘要:
mysqli_query($conn, "set names utf8"); //**设置字符集*** 不设置插入数据库就是乱码 阅读全文
摘要:
https://github.com/iview/iview-admin/tree/template 阅读全文
摘要:
interceptors (instance, url) { // 请求拦截 instance.interceptors.request.use(config => { // 添加全局的loading... if (!Object.keys(this.queue).length) { // Spin.show() // 不建议开启,因为界面不友好 } this.queue[url] = true 阅读全文
摘要:
mysql 如果没有密码 就不能远程连接 阅读全文
摘要:
后端框架 KOA NESTjs Think.js 阅读全文
摘要:
如果是 *.vue:html 就有style自动提示,但是eslint就会报格式格式化的不对 空格个数不对 阅读全文
摘要:
解决问题: 点击相同的链接,会有一个重复key的报错 放在router 的 index.js 里 阅读全文
摘要:
ret.data[0]._highlight = true iview table表格高亮 阅读全文