Commit ef40732f authored by 郑磊's avatar 郑磊

兼容性修复

parent 09049515
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"@vitejs/plugin-legacy": "^5.4.1",
"core-js-pure": "^3.37.1", "core-js-pure": "^3.37.1",
"fj-captcha-vue": "git+http://gitlab.3yakj.com/crystalray/fj-captcha-vue.git", "fj-captcha-vue": "git+http://gitlab.3yakj.com/crystalray/fj-captcha-vue.git",
"vconsole": "^3.15.1", "vconsole": "^3.15.1",
......
import legacy from '@vitejs/plugin-legacy'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [vue()], plugins: [vue(), legacy()],
server: { server: {
host: true, host: true,
proxy: { proxy: {
...@@ -13,6 +14,7 @@ export default defineConfig({ ...@@ -13,6 +14,7 @@ export default defineConfig({
}, },
}, },
build: { build: {
target: 'es2015',
cssTarget: 'chrome61', cssTarget: 'chrome61',
rollupOptions: { rollupOptions: {
input: { input: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment