fix: 优化低码回显
This commit is contained in:
parent
e5388b418f
commit
3cdd04f675
|
@ -46,9 +46,9 @@ const handle = async (appId: string, url: string) => {
|
||||||
|
|
||||||
const lowCode = () => {
|
const lowCode = () => {
|
||||||
lowCodeUrl().then(res => {
|
lowCodeUrl().then(res => {
|
||||||
console.log(res.success && res.result)
|
|
||||||
if (res.success && res.result) {
|
if (res.success && res.result) {
|
||||||
const url = res.result['ui-addr']
|
const url = res.result['ui-addr']
|
||||||
|
// const url = 'http://localhost:8080'
|
||||||
iframeUrl.value = url + '/#' + route.path + '?&token=' + getToken()
|
iframeUrl.value = url + '/#' + route.path + '?&token=' + getToken()
|
||||||
console.log(iframeUrl.value)
|
console.log(iframeUrl.value)
|
||||||
loading.value = true
|
loading.value = true
|
||||||
|
@ -58,7 +58,7 @@ const lowCode = () => {
|
||||||
|
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
const matchedItem: any = route.matched?.[0]
|
const matchedItem: any = route.matched?.[0]
|
||||||
if (matchedItem?.meta?.isApp) {
|
if (route.meta?.isApp) {
|
||||||
const params = route.path.split('/')?.[1];
|
const params = route.path.split('/')?.[1];
|
||||||
if (params === 'preview') {
|
if (params === 'preview') {
|
||||||
lowCode()
|
lowCode()
|
||||||
|
|
Loading…
Reference in New Issue