This commit is contained in:
Qyir 2025-11-18 11:43:35 +08:00
commit 00b1e31291
7 changed files with 11 additions and 8 deletions

View File

@ -0,0 +1 @@
VITE_API_BASE_URL=http://localhost:8443/api

1
frontend/.env.production Normal file
View File

@ -0,0 +1 @@
VITE_API_BASE_URL=http://159.75.150.210:8443/api

View File

@ -2,6 +2,7 @@
import { ref, reactive, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import axios from 'axios'
import { API_BASE_URL } from './api/base'
const router = useRouter()
@ -38,9 +39,7 @@ const editForm = reactive({
comments_summary: ''
})
// APIURL
// const API_BASE_URL = 'http://159.75.150.210:8443/api' //
const API_BASE_URL = 'http://localhost:8443/api' //
// APIURL
//
const formatPlayCount = (count) => {

View File

@ -165,9 +165,10 @@
import { ref, onMounted, computed } from 'vue'
import { useRouter } from 'vue-router'
import axios from 'axios'
import { API_BASE_URL } from './api/base'
const router = useRouter()
const API_BASE_URL = 'http://localhost:8443/api'
// APIURL
//
const applications = ref([])

View File

@ -2,6 +2,7 @@
import { ref, computed, onMounted } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import axios from 'axios'
import { API_BASE_URL } from './api/base'
const router = useRouter()
const route = useRoute()
@ -17,8 +18,7 @@ const loading = ref(false)
const dramaId = route.params.id
const fieldType = route.query.type // 'copyright' 'manufacturing'
// APIURL
const API_BASE_URL = 'http://localhost:8443/api'
// APIURL
//
const fieldLabel = computed(() => {

View File

@ -2,6 +2,7 @@
import { ref, onMounted, nextTick } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import axios from 'axios'
import { API_BASE_URL } from './api/base'
const router = useRouter()
const route = useRoute()
@ -23,8 +24,7 @@ const dramaData = ref({
comments_summary: '' //
})
// APIURL
const API_BASE_URL = 'http://localhost:8443/api' //
// APIURL
//
const goBack = () => {

1
frontend/src/api/base.js Normal file
View File

@ -0,0 +1 @@
export const API_BASE_URL = import.meta.env.VITE_API_BASE_URL;