|
@@ -25,6 +25,14 @@ console.log('index/index 首页打印了')
|
|
|
onLoad(() => {
|
|
onLoad(() => {
|
|
|
console.log('测试 uni API 自动引入: onLoad')
|
|
console.log('测试 uni API 自动引入: onLoad')
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
|
|
+// #region gotoAbout
|
|
|
|
|
+function gotoAbout() {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/pages-sub/about/about',
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+// #endregion
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
@@ -96,6 +104,11 @@ onLoad(() => {
|
|
|
https://wot-design-uni.cn
|
|
https://wot-design-uni.cn
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="mt-4 text-center">
|
|
|
|
|
+ <wd-button type="primary" class="ml-2" @click="gotoAbout">
|
|
|
|
|
+ 前往示例页
|
|
|
|
|
+ </wd-button>
|
|
|
|
|
+ </view>
|
|
|
<view class="h-6" />
|
|
<view class="h-6" />
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|