build(projects): 增加代码规范
This commit is contained in:
@@ -15,24 +15,22 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from "vue";
|
||||
import Taro from "@tarojs/taro";
|
||||
import "./index.scss";
|
||||
import { ref } from 'vue'
|
||||
import Taro from '@tarojs/taro'
|
||||
import './index.scss'
|
||||
|
||||
const info = ref<any>({});
|
||||
const info = ref<any>({})
|
||||
|
||||
Taro.useLoad(() => {
|
||||
info.value = Taro.getStorageSync("gameItem");
|
||||
});
|
||||
info.value = Taro.getStorageSync('gameItem')
|
||||
})
|
||||
|
||||
const list = ref([
|
||||
"https://files.wanzhuanyongcheng.com/file/img/yaotouzi/banner/qietu.png",
|
||||
]);
|
||||
const list = ref(['https://files.wanzhuanyongcheng.com/file/img/yaotouzi/banner/qietu.png'])
|
||||
|
||||
const startGame = () => {
|
||||
console.log(info.value);
|
||||
console.log(info.value)
|
||||
Taro.navigateTo({
|
||||
url: info.value.url,
|
||||
});
|
||||
};
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user