# dev8-web **Repository Path**: imnewsea/dev8-web ## Basic Information - **Project Name**: dev8-web - **Description**: dev8网站前端 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2019-09-29 - **Last Updated**: 2024-03-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dev8.cn ## 环境 - 安装 node - npm install -g @vue/cli - 安装node_sass到全局,防止安装组件时失败。 > http://www.hehaibao.com/fix-windows-node-saas-failed/ npm i -g node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ 或 npm install -g node-sass --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/dist --sass-binary-site=http://npm.taobao.org/mirrors/node-sass - 进入目录,npm i ## 运行 vue-cli-service serve ## nginx 部署 ``` server { listen 8000; root /opt/dev8/web; try_files $uri $uri/ /index.html =404; } ``` spa 只有用 nginx 部署才有效果。 # 编码片断 设置 table 行样式 ``` :row-style="({row})=> { return {fontWeight: (row.school.id == lastRowId? 'bold':'') } }" ```