JayChou 3 months ago
commit 5a4398f8cb
  1. 2
      .env.production
  2. 2
      .env.test
  3. 1
      .eslintrc.cjs
  4. BIN
      dist.zip
  5. 2
      package.json
  6. 1
      vite.config.ts

@ -1,3 +1,3 @@
NODE_ENV = 'production'
VITE_APP_TITLE = '教学一体化平台'
VITE_APP_BASE_API = '/api'
# VITE_APP_BASE_API = '/api'

@ -1,4 +1,4 @@
# 变量必须以 VITE_ 为前缀才能暴露给外部读取
NODE_ENV = 'test'
VITE_APP_TITLE = '教学一体化平台'
VITE_APP_BASE_API = '/api'
# VITE_APP_BASE_API = '/api'

@ -1,6 +1,7 @@
// @see https://eslint.bootcss.com/docs/rules/
module.exports = {
publicPath:"/portal",
env: {
browser: true,
es2021: true,

Binary file not shown.

@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite --open",
"build:test": "vue-tsc && vite build --mode test",
"build:test": "vite build",
"build:pro": "vue-tsc && vite build --mode production",
"preview": "vite preview",
"lint": "eslint src",

@ -20,6 +20,7 @@ const px2remOptions = {
minPixelValue: 0 , //设置要替换的最小像素值(3px会被转rem)。 默认 0
}
export default defineConfig({
base:'/portal',
plugins: [
vue(),
// 配置svg插件

Loading…
Cancel
Save