luohailiang 3 years ago
parent
commit
f52eb8ac35
2 changed files with 1 additions and 29 deletions
  1. 1 1
      src/utils/request.js
  2. 0 28
      vite.config.js

+ 1 - 1
src/utils/request.js

@@ -7,7 +7,7 @@ const { token } = useUserStore()
 const service = axios.create({
   baseURL: window.globalVariables.api,
   method: 'post',
-  timeout: 10000,
+  timeout: 60000,
   headers: {
     'Content-Type': 'application/x-www-form-urlencoded',
   },

+ 0 - 28
vite.config.js

@@ -1,28 +0,0 @@
-import { defineConfig } from 'vite'
-import { createVuePlugin } from 'vite-plugin-vue2'
-import { resolve } from 'path'
-
-// https://vitejs.dev/config/
-export default defineConfig(({ command }) => {
-  const config = {
-    plugins: [
-      createVuePlugin({
-        jsx: true,
-      }),
-    ],
-    resolve: {
-      alias: {
-        '@': resolve(__dirname, 'src'),
-        '@c': resolve(__dirname, 'src/components'),
-      },
-    },
-    css:{
-
-    }
-  }
-  if (command === 'build') {
-    config.base = '/app/activityRating/manage'
-  }
-
-  return config
-})