Переглянути джерело

Merge remote-tracking branch 'origin/main'

wuyi 3 місяців тому
батько
коміт
e24ee3f195
4 змінених файлів з 4 додано та 3 видалено
  1. 1 1
      .env.production
  2. 1 0
      deploy.sh
  3. 1 1
      src/router/index.js
  4. 1 1
      vite.config.js

+ 1 - 1
.env.production

@@ -1 +1 @@
-VITE_API_URL=
+VITE_API_URL=https://9g15.vip/api

+ 1 - 0
deploy.sh

@@ -0,0 +1 @@
+rsync --exclude='node_modules/' -ravzh --delete -e "ssh -o StrictHostKeyChecking=no" ./dist/ root@47.239.186.97:/var/www/junma-admin/

+ 1 - 1
src/router/index.js

@@ -6,7 +6,7 @@ import { useUserStore } from '@/stores/user'
 import { useTeamStore } from '@/stores/team'
 
 const router = createRouter({
-  history: createWebHistory('/admin/'),
+  history: createWebHistory('/'),
   routes: [
     {
       path: '/',

+ 1 - 1
vite.config.js

@@ -9,7 +9,7 @@ import tailwindcss from '@tailwindcss/vite'
 // https://vite.dev/config/
 export default defineConfig({
   plugins: [vue(), vueJsx(), vueDevTools(), tailwindcss()],
-  base: '/admin/',
+  base: '/',
   server: {
     port: 5175
   },