File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
test/e2e/miniprogram-cli-project/src Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
77createApp({
88 onLaunch() {
Original file line number Diff line number Diff line change 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 测试使用-->
3232 // testPngPath: testPngPath
3333 },
3434 methods: {
35- testTransRules () {
35+ testNavigateTo () {
3636 mpx.navigateTo({
3737 url: '/pages/index'
3838 })
You can’t perform that action at this time.
0 commit comments