12 2019 档案
摘要:vscode 对于 md的编写 左侧 大纲 很重要!! Ctrl+Shift+O
阅读全文
摘要:博客侧边栏公告(支持HTML代码)(支持JS代码) <div id='btnList'> <a class="ivu-btn ivu-btn-primary" href="https://cn.vuejs.org/v2/api/" target="_blank">Vue</a> <a class="ivu-btn ivu-btn-primary" href="https://www.iviewui
阅读全文
摘要:<template> <div> ${0} </div> </template> <script> export default { name: '$TM_FILENAME_BASE', props: {}, components: {}, data () { return { } }, watch
阅读全文
摘要:Vue.extend组件的嵌套和template外用 组件嵌套分为全局组件嵌套和局部组件嵌套 组件嵌套需要将子元素写在父元素内 子组件必须在父组件中注册之后才能在父组件的模板中使用 全局组件嵌套 局部组件嵌套 template的外用 注意:template外用,组件模板中的第一个元素必须唯一 摘自:
阅读全文
摘要:思路: php 开启 Session 登录时 生成token,前端存下,然后每次走接口 验证下Session里的token和前端发过来的token是否一样。 遇到问题:后端 每次PHP SessionId 由于异步请求,就不一样了,每次都生成一个新的。 解决方案:后端生成token,把 Sessio
阅读全文
摘要:今天开dev的时候,config update一下别人的,但是忘了自己改过目录了,导致光看ip,想了半天,为什么接口不对 baseUrl: { // // dev: 'http://127.0.0.1:9090/process-api/', dev: 'http://192.168.40.81:90
阅读全文
摘要:vscode在执行 npm任务的时候,会先执行package的name@version 然后命令名 加 当前路径,问题是我的引入路径e是小写的,会导致调试错误,解决方案:没找到 Executing task: npm run build < >name@version build e:\xxx\xx
阅读全文
摘要:多个文件名大小写不同,是因为运行代码是大写E,用vscode运行的是小写e,解决方案:手动npm run dev #There are multiple modules with names that only differ in casing.
阅读全文
摘要: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
阅读全文
摘要:rimraf node_modules 突然不能用了 怀疑是yarn的问题,从环境变量将yarn删掉,能用了
阅读全文