Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
48d46e4e
U
uni-app
项目概览
DCloud
/
uni-app
5 天 前同步成功
通知
815
Star
38709
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
8
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
8
Issue
8
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
48d46e4e
编写于
12月 03, 2023
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: remove unused
上级
6d32224c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
18 deletion
+18
-18
packages/uni-app-plus/src/x/framework/app/initAppLaunch.ts
packages/uni-app-plus/src/x/framework/app/initAppLaunch.ts
+1
-1
packages/uni-app-plus/src/x/framework/app/subscriber/index.ts
...ages/uni-app-plus/src/x/framework/app/subscriber/index.ts
+12
-12
packages/uni-app-plus/src/x/framework/app/subscriber/webviewReady.ts
...i-app-plus/src/x/framework/app/subscriber/webviewReady.ts
+3
-3
packages/uni-app-plus/src/x/framework/page/register.ts
packages/uni-app-plus/src/x/framework/page/register.ts
+2
-2
未找到文件。
packages/uni-app-plus/src/x/framework/app/initAppLaunch.ts
浏览文件 @
48d46e4e
import
{
invokeHook
}
from
'
@dcloudio/uni-core
'
import
{
invokeHook
}
from
'
@dcloudio/uni-core
'
import
{
injectAppHooks
}
from
'
@dcloudio/uni-api
'
import
{
injectAppHooks
}
from
'
@dcloudio/uni-api
'
import
{
ON_LAUNCH
,
ON_SHOW
,
ON_HIDE
}
from
'
@dcloudio/uni-shared
'
import
{
ON_LAUNCH
,
ON_SHOW
}
from
'
@dcloudio/uni-shared
'
import
{
ComponentPublicInstance
}
from
'
vue
'
import
{
ComponentPublicInstance
}
from
'
vue
'
import
{
initLaunchOptions
}
from
'
../../../service/framework/app/utils
'
import
{
initLaunchOptions
}
from
'
../../../service/framework/app/utils
'
...
...
packages/uni-app-plus/src/x/framework/app/subscriber/index.ts
浏览文件 @
48d46e4e
import
{
getRouteOptions
,
subscribeServiceMethod
}
from
'
@dcloudio/uni-core
'
//
import { getRouteOptions, subscribeServiceMethod } from '@dcloudio/uni-core'
import
{
//
import {
addLeadingSlash
,
//
addLeadingSlash,
ON_WXS_INVOKE_CALL_METHOD
,
//
ON_WXS_INVOKE_CALL_METHOD,
WEB_INVOKE_APPSERVICE
,
//
WEB_INVOKE_APPSERVICE,
}
from
'
@dcloudio/uni-shared
'
//
} from '@dcloudio/uni-shared'
import
{
//
import {
ON_WEBVIEW_READY
,
//
ON_WEBVIEW_READY,
VD_SYNC
,
//
VD_SYNC,
WEBVIEW_INSERTED
,
//
WEBVIEW_INSERTED,
WEBVIEW_REMOVED
,
//
WEBVIEW_REMOVED,
}
from
'
../../../../constants
'
//
} from '../../../../constants'
import
{
subscribeWebviewReady
}
from
'
./webviewReady
'
import
{
subscribeWebviewReady
}
from
'
./webviewReady
'
export
function
initSubscribeHandlers
()
{
export
function
initSubscribeHandlers
()
{
...
...
packages/uni-app-plus/src/x/framework/app/subscriber/webviewReady.ts
浏览文件 @
48d46e4e
import
{
getRouteOptions
}
from
'
@dcloudio/uni-core
'
//
import { getRouteOptions } from '@dcloudio/uni-core'
import
{
addLeadingSlash
}
from
'
@dcloudio/uni-shared
'
import
{
addLeadingSlash
}
from
'
@dcloudio/uni-shared
'
import
{
ON_WEBVIEW_READY
}
from
'
../../../../constants
'
//
import { ON_WEBVIEW_READY } from '../../../../constants'
import
{
$navigateTo
}
from
'
../../../api/route/navigateTo
'
import
{
$navigateTo
}
from
'
../../../api/route/navigateTo
'
// import { $switchTab } from '../../../api/route/switchTab'
// import { $switchTab } from '../../../api/route/switchTab'
...
@@ -29,7 +29,7 @@ function onLaunchWebviewReady() {
...
@@ -29,7 +29,7 @@ function onLaunchWebviewReady() {
// plus.navigator.closeSplashscreen()
// plus.navigator.closeSplashscreen()
// }
// }
const
entryPagePath
=
addLeadingSlash
(
__uniConfig
.
entryPagePath
!
)
const
entryPagePath
=
addLeadingSlash
(
__uniConfig
.
entryPagePath
!
)
const
routeOptions
=
getRouteOptions
(
entryPagePath
)
!
//
const routeOptions = getRouteOptions(entryPagePath)!
const
args
=
{
const
args
=
{
url
:
entryPagePath
+
(
__uniConfig
.
entryPageQuery
||
''
),
url
:
entryPagePath
+
(
__uniConfig
.
entryPageQuery
||
''
),
...
...
packages/uni-app-plus/src/x/framework/page/register.ts
浏览文件 @
48d46e4e
...
@@ -4,8 +4,8 @@ import { IPage } from '@dcloudio/uni-app-x/types/native'
...
@@ -4,8 +4,8 @@ import { IPage } from '@dcloudio/uni-app-x/types/native'
import
{
EventChannel
,
formatLog
}
from
'
@dcloudio/uni-shared
'
import
{
EventChannel
,
formatLog
}
from
'
@dcloudio/uni-shared
'
import
{
import
{
initPageInternalInstance
,
initPageInternalInstance
,
initPageVm
,
//
initPageVm,
invokeHook
,
//
invokeHook,
}
from
'
@dcloudio/uni-core
'
}
from
'
@dcloudio/uni-core
'
import
{
genWebviewId
}
from
'
../../../service/framework/webview/utils
'
import
{
genWebviewId
}
from
'
../../../service/framework/webview/utils
'
import
{
initRouteOptions
}
from
'
../../../service/framework/page/routeOptions
'
import
{
initRouteOptions
}
from
'
../../../service/framework/page/routeOptions
'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录