mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(editor): Use base path in workflow preview component URL (#4560)
🐛 Fix for workflow preview component URL
This commit is contained in:
parent
536c834313
commit
db163b71b9
|
@ -14,7 +14,7 @@
|
||||||
[$style.show]: this.showPreview,
|
[$style.show]: this.showPreview,
|
||||||
}"
|
}"
|
||||||
ref="preview_iframe"
|
ref="preview_iframe"
|
||||||
src="/workflows/demo"
|
:src="`${rootStore.baseUrl}workflows/demo`"
|
||||||
@mouseenter="onMouseEnter"
|
@mouseenter="onMouseEnter"
|
||||||
@mouseleave="onMouseLeave"
|
@mouseleave="onMouseLeave"
|
||||||
></iframe>
|
></iframe>
|
||||||
|
@ -25,6 +25,8 @@
|
||||||
import mixins from 'vue-typed-mixins';
|
import mixins from 'vue-typed-mixins';
|
||||||
import { showMessage } from '@/components/mixins/showMessage';
|
import { showMessage } from '@/components/mixins/showMessage';
|
||||||
import { IWorkflowDb } from '../Interface';
|
import { IWorkflowDb } from '../Interface';
|
||||||
|
import { mapStores } from 'pinia';
|
||||||
|
import { useRootStore } from '@/stores/n8nRootStore';
|
||||||
|
|
||||||
export default mixins(showMessage).extend({
|
export default mixins(showMessage).extend({
|
||||||
name: 'WorkflowPreview',
|
name: 'WorkflowPreview',
|
||||||
|
@ -64,6 +66,9 @@ export default mixins(showMessage).extend({
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
...mapStores(
|
||||||
|
useRootStore,
|
||||||
|
),
|
||||||
showPreview(): boolean {
|
showPreview(): boolean {
|
||||||
return !this.loading &&
|
return !this.loading &&
|
||||||
(
|
(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { STORES } from '@/constants';
|
import { STORES } from '@/constants';
|
||||||
import { INodeUi, IRestApiContext, RootState } from '@/Interface';
|
import { IRestApiContext, RootState } from '@/Interface';
|
||||||
import { IDataObject } from 'n8n-workflow';
|
import { IDataObject } from 'n8n-workflow';
|
||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
|
Loading…
Reference in a new issue