mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(runtime): vue runtime App组件中缺失inject
This commit is contained in:
parent
d5ce54f35e
commit
15e9cdc2d6
@ -3,7 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent, inject } from 'vue';
|
||||||
|
|
||||||
import type { Page } from '@tmagic/core';
|
import type { Page } from '@tmagic/core';
|
||||||
import Core from '@tmagic/core';
|
import Core from '@tmagic/core';
|
||||||
|
@ -1,17 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<magic-ui-page v-if="pageConfig" :config="pageConfig" :key="pageConfig.id"></magic-ui-page>
|
<magic-ui-page v-if="pageConfig" :key="pageConfig.id" :config="pageConfig"></magic-ui-page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { useEditorDsl } from '@tmagic/vue-runtime-help';
|
import { useEditorDsl } from '@tmagic/vue-runtime-help';
|
||||||
declare global {
|
|
||||||
interface Window {
|
|
||||||
magic: Magic;
|
|
||||||
appInstance: Core;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
setup() {
|
setup() {
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { inject } from 'vue';
|
||||||
|
|
||||||
import type { Page } from '@tmagic/core';
|
import type { Page } from '@tmagic/core';
|
||||||
import Core from '@tmagic/core';
|
import Core from '@tmagic/core';
|
||||||
import { addParamToUrl } from '@tmagic/utils';
|
import { addParamToUrl } from '@tmagic/utils';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user