Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-06-28 18:33:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
34d3f40a1613960cb45ba704f64d515ebaaba887
34d3f40a
1 parent
c8ffae55
fix 修复是否在iframe判断
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/App.vue
src/App.vue
View file @
34d3f40
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-28 1
7:08:06
* @LastEditTime: 2024-06-28 1
8:31:02
* @FilePath: /data-table/src/App.vue
* @Description:
-->
...
...
@@ -66,7 +66,7 @@ const is_pc = computed(() => wxInfo().isPC);
// 微信端判断
const is_wx = computed(() => wxInfo().isWeiXin);
// iframe模式判断
const is_iframe = computed(() => window.
frames.length > 0
);
const is_iframe = computed(() => window.
self !== window.top
);
onMounted(async () => {
const code = getUrlParams(location.href) ? getUrlParams(location.href).code : '';
...
...
@@ -119,8 +119,8 @@ onMounted(async () => {
if (!form_setting.is_back_user) { // 用户未登录
record_openid = true;
} else { // 用户已登录
if (!
data_id) { //
新增表单
record_openid = true
if (!
is_iframe.value && page_type === 'add') { // 非iframe里面
新增表单
record_openid = true
;
}
}
...
...
Please
register
or
login
to post a comment