You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2017/03/31 02:44:46 UTC

[30/50] [abbrv] incubator-weex git commit: * [html5] fix path.

* [html5] fix path.


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/44ea95eb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/44ea95eb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/44ea95eb

Branch: refs/heads/0.11-dev
Commit: 44ea95ebb94c13ef17c097b493714ec23b333e9c
Parents: dca2838
Author: MrRaindrop <te...@gmail.com>
Authored: Tue Mar 28 11:21:56 2017 +0800
Committer: MrRaindrop <te...@gmail.com>
Committed: Tue Mar 28 11:21:56 2017 +0800

----------------------------------------------------------------------
 examples/vue/components/navigator.vue | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/44ea95eb/examples/vue/components/navigator.vue
----------------------------------------------------------------------
diff --git a/examples/vue/components/navigator.vue b/examples/vue/components/navigator.vue
index 0413d29..ab1423f 100644
--- a/examples/vue/components/navigator.vue
+++ b/examples/vue/components/navigator.vue
@@ -28,7 +28,8 @@
         navBarHeight: 88,
         title: 'Navigator',
         dir: 'examples',
-        baseURL: ''
+        baseURL: '',
+        subPath: weex.config.env.platform === 'Web' ? 'vue-web/' : ''
       }
     },
     components: {
@@ -56,14 +57,14 @@
       },
       push: function () {
         var params = {
-          'url':  this.baseURL + 'vue/components/navigator.js?test=1',
+          'url':  this.baseURL + this.subPath + 'vue/components/navigator.js?test=1',
           'animated' : 'true',
         }
         navigator.push(params, function () {});
       },
       pop: function () {
         var params = {
-          'url':  this.baseURL + 'vue/components/navigator.js?test=1',
+          'url':  this.baseURL + this.subPath + 'vue/components/navigator.js?test=1',
           'animated' : 'true',
         }
         navigator.pop(params, function () {});