Loading

前端入职项目问题总结

新公司熟悉项目遇到的问题总结

  1. react项目、VSCODE配置eslint保存格式化
{
    "editor.fontFamily": "Source Code Pro, Consolas, 'Courier New', monospace",
    "workbench.colorTheme": "One Dark Pro",
    "git.path": "C:/Program Files/Git/bin/git.exe",
    "editor.formatOnSave": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact"
    ],
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    }
}
  1. git重置密码
git config --system --unset credential.helper
git config --global credential.helper store 

输入结束之后就会提示重新输入git账号密码

  • 使用SSH密钥连接Github

引用自 使用SSH密钥连接Github

  1. 单页应用类似react/vue,当使用browserHistory 做前端路由时,当访问类似/user/123/后端需要配置重定向到 index.html页面
  • 友情提示: java后端新建controller
@RequestMapping("/api/**")
public ApiResult api(HttpServletRequest request, HttpServletResponse response){
    return apiProxy.proxy(request, response);
}

@RequestMapping(value="/**", method=HTTPMethod.GET)
public String index(){
    return "index"
}

posted @ 2020-03-23 14:14  lewiskycc  阅读(392)  评论(0编辑  收藏  举报