refactor: update index.html and vite.config.ts to use local libraries and remove unnecessary scripts
This commit is contained in:
@@ -23,14 +23,16 @@ export let IS_LOGIN = false
|
||||
export const CAN_REQUEST = IS_LOGIN && IS_OFFICIAL
|
||||
export const RESOURCE_PATH = ENV.API + 'static'
|
||||
|
||||
const BASE_URL = (import.meta as any).env?.BASE_URL || '/'
|
||||
|
||||
export const DICT_LIST = {
|
||||
WORD: {
|
||||
ALL: './list/word.json',
|
||||
RECOMMENDED: './list/recommend_word.json',
|
||||
ALL: `${BASE_URL}list/word.json`,
|
||||
RECOMMENDED: `${BASE_URL}list/recommend_word.json`,
|
||||
},
|
||||
ARTICLE: {
|
||||
ALL: './list/article.json',
|
||||
RECOMMENDED: './list/article.json',
|
||||
ALL: `${BASE_URL}list/article.json`,
|
||||
RECOMMENDED: `${BASE_URL}list/article.json`,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user