LOCKING盒子版
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { defineConfig } from 'umi';
  2. const isBuildingElectron = process.env.BUILD_TYPE === 'electron';
  3. export default defineConfig({
  4. nodeModulesTransform: {
  5. type: 'none',
  6. },
  7. history: {
  8. type: 'hash',
  9. },
  10. // routes: [
  11. // { path: '/', component: '@/pages/index' },
  12. // ],
  13. fastRefresh: {},
  14. publicPath: './',
  15. theme: {
  16. 'primary-color': '#7850FF',
  17. 'app-header-height': '48px',
  18. },
  19. chainWebpack(config) {
  20. if (isBuildingElectron) {
  21. config.target('electron-renderer');
  22. }
  23. },
  24. proxy: {
  25. '/api': {
  26. target: 'http://139.198.180.242:9003',
  27. // target: 'http://www.lockingos.org:9003',
  28. //target: 'http://192.168.8.114:8082',
  29. changeOrigin: true,
  30. secure: false,
  31. },
  32. '/gateway': {
  33. target: 'http://127.0.0.1:7888',
  34. changeOrigin: true,
  35. secure: false,
  36. pathRewrite: {
  37. '^/gateway': '',
  38. },
  39. },
  40. },
  41. });