Showing
1 changed file
with
4 additions
and
4 deletions
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | * @Author: hookehuyr hookehuyr@gmail.com | 2 | * @Author: hookehuyr hookehuyr@gmail.com |
| 3 | * @Date: 2022-05-26 23:52:36 | 3 | * @Date: 2022-05-26 23:52:36 |
| 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 5 | - * @LastEditTime: 2024-06-28 17:08:06 | 5 | + * @LastEditTime: 2024-06-28 18:31:02 |
| 6 | * @FilePath: /data-table/src/App.vue | 6 | * @FilePath: /data-table/src/App.vue |
| 7 | * @Description: | 7 | * @Description: |
| 8 | --> | 8 | --> |
| ... | @@ -66,7 +66,7 @@ const is_pc = computed(() => wxInfo().isPC); | ... | @@ -66,7 +66,7 @@ const is_pc = computed(() => wxInfo().isPC); |
| 66 | // 微信端判断 | 66 | // 微信端判断 |
| 67 | const is_wx = computed(() => wxInfo().isWeiXin); | 67 | const is_wx = computed(() => wxInfo().isWeiXin); |
| 68 | // iframe模式判断 | 68 | // iframe模式判断 |
| 69 | -const is_iframe = computed(() => window.frames.length > 0); | 69 | +const is_iframe = computed(() => window.self !== window.top); |
| 70 | 70 | ||
| 71 | onMounted(async () => { | 71 | onMounted(async () => { |
| 72 | const code = getUrlParams(location.href) ? getUrlParams(location.href).code : ''; | 72 | const code = getUrlParams(location.href) ? getUrlParams(location.href).code : ''; |
| ... | @@ -119,8 +119,8 @@ onMounted(async () => { | ... | @@ -119,8 +119,8 @@ onMounted(async () => { |
| 119 | if (!form_setting.is_back_user) { // 用户未登录 | 119 | if (!form_setting.is_back_user) { // 用户未登录 |
| 120 | record_openid = true; | 120 | record_openid = true; |
| 121 | } else { // 用户已登录 | 121 | } else { // 用户已登录 |
| 122 | - if (!data_id) { // 新增表单 | 122 | + if (!is_iframe.value && page_type === 'add') { // 非iframe里面新增表单 |
| 123 | - record_openid = true | 123 | + record_openid = true; |
| 124 | } | 124 | } |
| 125 | } | 125 | } |
| 126 | 126 | ... | ... |
-
Please register or login to post a comment