1.解决线上报错token的问题

v1.0.0
sws 2024-10-23 14:44:24 +08:00
parent 35936fe38e
commit e6634ea6ff
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,6 @@ import { createApp } from 'vue';
import { createPinia } from 'pinia';
import { commonStore } from '@/store';
import App from '@/App.vue';
import { isEmpty } from 'element-plus/es/utils';
const app = createApp(App);
const pinia = createPinia();
app.use(pinia);
@ -417,6 +416,7 @@ export const tabs_style = (color: string, style: string | number | boolean | und
* @returns {Promise<string>} PromiseURL
*/
export const online_url = async (directory: string = '') => {
console.log(2);
if (import.meta.env.VITE_APP_BASE_API == '/dev-api') {
let temp_data = await import(import.meta.env.VITE_APP_BASE_API == '/dev-api' ? '../../temp.d' : '../../temp_pro.d');
return temp_data.default.temp_attachment_host + directory;