From 8862e386232a85cb395971b088cdb00bb4f131df Mon Sep 17 00:00:00 2001 From: cookfront Date: Sat, 1 Apr 2017 16:04:32 +0800 Subject: [PATCH] docs popup fix --- docs/components/mobile-computed.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/components/mobile-computed.js b/docs/components/mobile-computed.js index b59fb80e9..e052c93bb 100644 --- a/docs/components/mobile-computed.js +++ b/docs/components/mobile-computed.js @@ -7,7 +7,11 @@ export default { computed: { mobileUrl() { - return '/examples.html#' + location.pathname.slice(4); + if (process.env.NODE_ENV === 'production') { + return '/vue/examples#' + location.pathname.slice(4); + } else { + return '/examples.html#' + location.pathname.slice(4); + } } },