api report
This commit is contained in:
parent
7ba783f9a5
commit
93a70195ec
1 changed files with 6 additions and 7 deletions
|
|
@ -4,6 +4,7 @@ import { ref } from 'vue'
|
|||
const env = ref<string>(process.env.NODE_ENV || 'development')
|
||||
export const apiUrlConfig = `${import.meta.env.VITE_API_URI_CONFIG}`
|
||||
export const apiUrlConfigV2 = `${import.meta.env.VITE_API_URI_REPORT_CONFIG}`
|
||||
export const apiUrlConfigReport = import.meta.env.VITE_API_REPORT_URL
|
||||
|
||||
const config = ref<any>({
|
||||
development: {
|
||||
|
|
@ -11,8 +12,7 @@ const config = ref<any>({
|
|||
API_URI: apiUrlConfig,
|
||||
API_URI_V2: apiUrlConfigV2,
|
||||
MEET_URI: 'meet.frappet.com',
|
||||
API_REPORT_TEMPLATE_URI:
|
||||
"https://report-server.frappet.synology.me/api/v1/report-template",
|
||||
API_REPORT_TEMPLATE_URI: 'https://report-server.frappet.synology.me/api/v1/report-template'
|
||||
},
|
||||
test: {
|
||||
API_URI: 'http://localhost:5010/api/v1',
|
||||
|
|
@ -23,21 +23,20 @@ const config = ref<any>({
|
|||
// API_URI: "https://localhost:5010",
|
||||
API_URI: apiUrlConfig,
|
||||
API_URI_V2: apiUrlConfigV2,
|
||||
MEET_URI: 'meet.frappet.com'
|
||||
MEET_URI: 'meet.frappet.com',
|
||||
API_REPORT_TEMPLATE_URI: apiUrlConfigReport
|
||||
}
|
||||
})
|
||||
|
||||
const API_URI = ref<string>(config.value[env.value].API_URI)
|
||||
const API_URI_V2 = ref<string>(config.value[env.value].API_URI_V2)
|
||||
const MEET_URI = ref<string>(config.value[env.value].MEET_URI)
|
||||
const API_REPORT_TEMPLATE_URI = ref<string>(
|
||||
config.value[env.value].API_REPORT_TEMPLATE_URI
|
||||
);
|
||||
const API_REPORT_TEMPLATE_URI = ref<string>(config.value[env.value].API_REPORT_TEMPLATE_URI)
|
||||
export default {
|
||||
env: env.value,
|
||||
config: config.value,
|
||||
API_URI: API_URI.value,
|
||||
API_URI_V2: API_URI_V2.value,
|
||||
MEET_URI: MEET_URI.value,
|
||||
API_REPORT_TEMPLATE_URI: API_REPORT_TEMPLATE_URI.value,
|
||||
API_REPORT_TEMPLATE_URI: API_REPORT_TEMPLATE_URI.value
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue