1.解决线上报错token的问题
parent
35936fe38e
commit
e6634ea6ff
|
|
@ -2,7 +2,6 @@ import { createApp } from 'vue';
|
||||||
import { createPinia } from 'pinia';
|
import { createPinia } from 'pinia';
|
||||||
import { commonStore } from '@/store';
|
import { commonStore } from '@/store';
|
||||||
import App from '@/App.vue';
|
import App from '@/App.vue';
|
||||||
import { isEmpty } from 'element-plus/es/utils';
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
const pinia = createPinia();
|
const pinia = createPinia();
|
||||||
app.use(pinia);
|
app.use(pinia);
|
||||||
|
|
@ -417,6 +416,7 @@ export const tabs_style = (color: string, style: string | number | boolean | und
|
||||||
* @returns {Promise<string>} 返回一个Promise,解析为包含资源URL的字符串
|
* @returns {Promise<string>} 返回一个Promise,解析为包含资源URL的字符串
|
||||||
*/
|
*/
|
||||||
export const online_url = async (directory: string = '') => {
|
export const online_url = async (directory: string = '') => {
|
||||||
|
console.log(2);
|
||||||
if (import.meta.env.VITE_APP_BASE_API == '/dev-api') {
|
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');
|
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;
|
return temp_data.default.temp_attachment_host + directory;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue