spring
3 天以前 126316e94197a03012d37d5a9170c0f854367bfa
fix: 打包配置
已添加3个文件
已修改4个文件
38564 ■■■■ 文件已修改
.eslintignore 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.eslintrc.js 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.gitignore 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package-lock.json 27655 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yarn.lock 10820 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.eslintignore
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
node_modules/
dist/
dist-ssr/
static/
coverage/
.eslintrc.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,33 @@
module.exports = {
  root: true,
  env: {
    browser: true,
    node: true,
    es6: true
  },
  // Vue SFC éœ€è¦ä½¿ç”¨ vue-eslint-parser æ¥è§£æž template/script/style
  parser: 'vue-eslint-parser',
  parserOptions: {
    // script éƒ¨åˆ†ç”¨ babel-eslint
    parser: 'babel-eslint',
    ecmaVersion: 2020,
    sourceType: 'module'
  },
  plugins: ['vue'],
  extends: [
    'eslint:recommended',
    'plugin:vue/recommended',
    // è®© prettier è§„则接管格式问题,减少无谓报错
    'prettier'
  ],
  rules: {
    // è®©çŽ°æœ‰é¡¹ç›®å°½å¿«å¯ç¼–è¯‘ï¼ˆé¿å…å¤§é‡åŽ†å²ä»£ç è§¦å‘ eslint é˜»å¡žï¼‰
    'no-console': 'off',
    'no-debugger': 'off',
    'no-unused-vars': 'off',
    'no-undef': 'off',
    'vue/multi-word-component-names': 'off',
    'vue/no-v-html': 'off'
  }
};
.gitignore
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,39 @@
# Dependencies
node_modules/
# Vue build output
dist/
dist-ssr/
static/
# Coverage / test
coverage/
# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
*.log
# Environment variables
.env
.env.*
!.env.example
# IDEs / editors
.idea/
.vscode/
*.iml
# Windows / macOS system files
Thumbs.db
.DS_Store
__MACOSX/
._*
# Misc
.eslintcache
*.swp
*.swo
*.swn
*.tmp
package-lock.json
ÎļþÌ«´ó
src/views/home/index.vue
@@ -136,7 +136,7 @@
      heartTimeoutObj: null,
      heartServerTimeoutObj: null,
      wsUrl: 'wss://car-internalmanager.ztt.cn/admin/bigscreen',
      wsUrl: process.env.NODE_ENV === 'development' ? 'ws://localhost:8993/admin/bigscreen' : 'ws://1.15.17.182:9031/admin/bigscreen',
      // wsUrl: 'wss://car-manager.truekey.mobi//admin/bigscreen',
      ws: null,
      lockReconnect: false // æ˜¯å¦è¿žæŽ¥æˆåŠŸ
vue.config.js
@@ -26,6 +26,15 @@
  devServer: {
    port: 8993,
    open: true,
    // Local websocket proxy (dev only) so local access can reach backend.
    // Production build uses the real backend address directly (see wsUrl in home/index.vue).
    proxy: {
      '/admin': {
        target: 'http://1.15.17.182:9031',
        ws: true,
        changeOrigin: true,
      },
    },
  },
  configureWebpack: {
    name: name,
yarn.lock
ÎļþÌ«´ó