fix(miniprogram): 优化分包并清理旧版小游戏
This commit is contained in:
@@ -303,14 +303,7 @@ import TongjiIcon from './components/TongjiIcon.vue'
|
||||
import { useGameSfx } from './composables/useGameSfx.js'
|
||||
import { useGamePlatform } from './composables/useGamePlatform.js'
|
||||
import { useGameAuth } from './composables/useGameAuth.js'
|
||||
|
||||
const FOOD_IMAGE_MODULES = import.meta.glob('./assets/food/*.jpg', {
|
||||
eager: true,
|
||||
import: 'default'
|
||||
})
|
||||
const FOOD_IMAGES = Object.fromEntries(
|
||||
Object.entries(FOOD_IMAGE_MODULES).map(([path, url]) => [path.split('/').pop().replace(/\.jpg$/, ''), url])
|
||||
)
|
||||
import FOOD_IMAGES from 'virtual:tongji-endless-food-images'
|
||||
|
||||
const ROWS = 5
|
||||
const COLS = 4
|
||||
|
||||
Reference in New Issue
Block a user