This commit is contained in:
dzl
2025-10-23 14:30:58 +08:00
3 changed files with 8 additions and 6 deletions

View File

@@ -7,8 +7,8 @@ const config = {
},
production: {
baseURL: 'https://minio.zrbjr.com',
uploadURL: `${window.location.origin}/api/upload`,
apiURL: `${window.location.origin}/api`
uploadURL: `/api/upload`,
apiURL: `/api`
}
}

View File

@@ -125,6 +125,8 @@ const handleLogin = async () => {
captchaId: captchaInfo.captchaId,
captchaText: captchaInfo.captchaText
})
console.log(result,'result');
if (result.success) {
console.log('登录信息:',JSON.parse(localStorage.getItem('admin_user')))

View File

@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
import {resolve} from 'path'
// https://vitejs.dev/config/
export default defineConfig({
@@ -16,7 +16,7 @@ export default defineConfig({
port: 5174,
proxy: {
'/api': {
target: 'http://192.168.0.11:3002',
target: 'http://192.168.1.43:3002',
changeOrigin: true
},
// '/admin': {
@@ -24,7 +24,7 @@ export default defineConfig({
// changeOrigin: true
// },
'/uploads': {
target: 'http://192.168.0.11:3002',
target: 'http://192.168.1.43:3002',
changeOrigin: true
}
}