|
@@ -926,11 +926,11 @@ onBeforeMount(() => {
|
|
|
|
|
|
// 生命周期钩子
|
|
// 生命周期钩子
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
- clientObj.value = {
|
|
|
|
- width: document.querySelector('.game-container').offsetWidth,
|
|
|
|
- height: document.querySelector('.game-container').offsetHeight,
|
|
|
|
- }
|
|
|
|
- initGame();
|
|
|
|
|
|
+ clientObj.value = {
|
|
|
|
+ width: document.querySelector('.game-container').offsetWidth,
|
|
|
|
+ height: document.querySelector('.game-container').offsetHeight,
|
|
|
|
+ }
|
|
|
|
+ initGame();
|
|
});
|
|
});
|
|
|
|
|
|
onBeforeUnmount(() => {
|
|
onBeforeUnmount(() => {
|