Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-09-19 23:48:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5c0491667de8be2969569b8fd65a76dda24f092f
5c049166
1 parent
f8724775
fix: 将 Taro.getSystemInfoSync 替换为 Taro.getWindowInfo
更新系统信息获取方法以使用更合适的 API
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/pages/ActivitiesCover/index.vue
src/pages/Dashboard/index.vue
src/pages/ActivitiesCover/index.vue
View file @
5c04916
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-19 2
2:53:44
* @LastEditTime: 2025-09-19 2
3:47:10
* @FilePath: /lls_program/src/pages/ActivitiesCover/index.vue
* @Description: 活动海报页面 - 展示活动信息并处理定位授权
-->
...
...
@@ -156,7 +156,7 @@ const systemInfo = ref({});
*/
const getSystemInfo = () => {
try {
const info = Taro.get
SystemInfoSync
();
const info = Taro.get
WindowInfo
();
systemInfo.value = info;
} catch (error) {
console.error('获取系统信息失败:', error);
...
...
src/pages/Dashboard/index.vue
View file @
5c04916
<!--
* @Date: 2025-08-27 17:43:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-19 23:
23:33
* @LastEditTime: 2025-09-19 23:
46:06
* @FilePath: /lls_program/src/pages/Dashboard/index.vue
* @Description: 首页
-->
...
...
@@ -478,7 +478,7 @@ const systemInfo = ref({});
*/
const getSystemInfo = () => {
try {
const info = Taro.get
SystemInfoSync
();
const info = Taro.get
WindowInfo
();
systemInfo.value = info;
} catch (error) {
console.error('获取系统信息失败:', error);
...
...
Please
register
or
login
to post a comment