fix import path
This commit is contained in:
@@ -1,21 +1,18 @@
|
||||
<template>
|
||||
<div class="root">
|
||||
<h2 v-popup="`提示`">test popup</h2>
|
||||
<icon name="ZIP" :scale="2" disabled />
|
||||
<markdown-editor class="editor" v-model:data="data" :minRows="12" :max-rows="24" />
|
||||
<copyright />
|
||||
</div>
|
||||
<popup />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { Icon, Popup } from "timi-web";
|
||||
import MarkdownEditor from "~/components/markdown-editor/index.vue";
|
||||
|
||||
const data = ref("");
|
||||
|
||||
import { Copyright } from "timi-web";
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.root {
|
||||
width: 80%;
|
||||
|
||||
.sp {
|
||||
height: 520px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import { createApp } from "vue";
|
||||
import Root from "./Root.vue";
|
||||
import TimiWebUI, { axios, VPopup } from "timi-web"; // 本地开发
|
||||
|
||||
axios.defaults.baseURL = "http://localhost:8091";
|
||||
import { VPopup } from "timi-web"; // 本地开发
|
||||
|
||||
const app = createApp(Root);
|
||||
app.use(TimiWebUI);
|
||||
app.directive("popup", VPopup);
|
||||
app.mount("#root");
|
||||
|
||||
Reference in New Issue
Block a user