webman-admin打包之后,登陆页验证码不显示

lychuan

问题描述

webman-admin打包之后,登陆页验证码不显示,vite.config.ts这个需要怎么配置呢?

env production配置信息

# Whether to open mock
VITE_USE_MOCK = false

# public path
VITE_PUBLIC_PATH = /

# Delete console
VITE_DROP_CONSOLE = true

# Whether to enable gzip or brotli compression
# Optional: gzip | brotli | none
# If you need multiple forms, you can use `,` to separate
VITE_BUILD_COMPRESS = 'gzip'

# Whether to delete origin files when using compress, default false
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false

# Basic interface address SPA
VITE_GLOB_API_URL=https://url

# File upload address, optional
# It can be forwarded by nginx or write the actual address directly
VITE_GLOB_UPLOAD_URL=https://url/app/admin/upload/upload

# Interface prefix
VITE_GLOB_API_URL_PREFIX=

# Whether to enable image compression
VITE_USE_IMAGEMIN= false

# use pwa
VITE_USE_PWA = false

# Is it compatible with older browsers
VITE_LEGACY = false

vite.config.ts配置信息

server: {
      https: true,
      //https: false,
      // Listening on all local IPs
      host:true,
      port: VITE_PORT,
      // Load proxy configuration from .env
      proxy: createProxy(VITE_PROXY),
    },
1502 1 0
1个回答

yongdao35

不显示看报错啊,看下请求地址、浏览器报错信息、服务端报错日志。基本的定位方法和能力要有啊

  • 暂无评论
年代过于久远,无法发表回答
×
🔝