Skip to content

Commit 3db1bdd

Browse files
author
yandadaFreedom
committed
chore: update demo
1 parent cbc6c82 commit 3db1bdd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/e2e/miniprogram-cli-project/src/app.mpx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script>
2-
import {createApp} from '@mpxjs/core'
3-
// import apiProxy from '@mpxjs/api-proxy'
2+
import mpx, {createApp} from '@mpxjs/core'
3+
import apiProxy from '@mpxjs/api-proxy'
44

5-
// mpx.use(apiProxy, {usePromise: true})
5+
mpx.use(apiProxy, {usePromise: true})
66

77
createApp({
88
onLaunch() {

test/e2e/miniprogram-cli-project/src/components/list.mpx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<view class="path_index_path">{{pathIndexPath}}</view>
88
<!--图片的路径引用-->
99
<!-- <image src="../static/img/test.png" class="image_path_require"></image> -->
10-
<button bindtap="testTransRules">click test trans rules</button>
10+
<button bindtap="testNavigateTo">click test navigateTo</button>
1111
<!--defs 测试使用-->
1212
<view class="test_defs">defs: {{__testDef__}}</view>
1313
<!--decodeText 测试使用-->
@@ -32,7 +32,7 @@
3232
// testPngPath: testPngPath
3333
},
3434
methods: {
35-
testTransRules() {
35+
testNavigateTo() {
3636
mpx.navigateTo({
3737
url: '/pages/index'
3838
})

0 commit comments

Comments
 (0)