vite.config.js 中加入:

  server: {

    // for HRM in Docker
    host: '0.0.0.0',
    watch: {
      usePolling: true
    },
  }