feat: 修改 libs 为 plugins 目录

master
绝弹 2024-03-01 08:05:50 +08:00
parent 226cdffea7
commit 4a97226826
8 changed files with 9 additions and 10 deletions

View File

@ -5,7 +5,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { dayjs } from "@/libs/dayjs"; import dayjs from "dayjs";
import { PropType } from "vue"; import { PropType } from "vue";
import { FontRender } from "../font"; import { FontRender } from "../font";
import { Date } from "./interface"; import { Date } from "./interface";

View File

@ -5,11 +5,10 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { dayjs } from '@/libs/dayjs'; import dayjs from 'dayjs';
import { onMounted, onUnmounted, ref } from 'vue'; import { PropType, onMounted, onUnmounted, ref } from 'vue';
import { FontRender } from '../font'; import { FontRender } from '../font';
import { Time } from './interface'; import { Time } from './interface';
import { PropType } from 'vue';
const props = defineProps({ const props = defineProps({
data: { data: {

View File

@ -1,5 +1,5 @@
import { dayjs } from '@/libs/dayjs';
import { Avatar } from '@arco-design/web-vue'; import { Avatar } from '@arco-design/web-vue';
import dayjs from 'dayjs';
import { TableColumn } from '../hooks/useTableColumn'; import { TableColumn } from '../hooks/useTableColumn';
export function useUpdateColumn(extra: TableColumn = {}): TableColumn { export function useUpdateColumn(extra: TableColumn = {}): TableColumn {

View File

@ -1,11 +1,11 @@
import { createApp } from 'vue';
import App from '@/App.vue'; import App from '@/App.vue';
import { api } from '@/api';
import { dayjs } from '@/plugins/dayjs';
import { NProgress } from '@/plugins/nprogress';
import { router } from '@/router'; import { router } from '@/router';
import { store } from '@/store'; import { store } from '@/store';
import { style } from '@/styles'; import { style } from '@/styles';
import { dayjs } from '@/libs/dayjs'; import { createApp } from 'vue';
import { NProgress } from '@/libs/nprogress';
import { api } from '@/api';
const run = async () => { const run = async () => {
const app = createApp(App); const app = createApp(App);

View File

@ -52,10 +52,10 @@
<script lang="ts" setup> <script lang="ts" setup>
import { api } from '@/api'; import { api } from '@/api';
import { dayjs } from '@/libs/dayjs';
import { useAppStore } from '@/store/app'; import { useAppStore } from '@/store/app';
import { useUserStore } from '@/store/user'; import { useUserStore } from '@/store/user';
import { FieldRule, Form, Message, Modal, Notification } from '@arco-design/web-vue'; import { FieldRule, Form, Message, Modal, Notification } from '@arco-design/web-vue';
import dayjs from 'dayjs';
import { reactive } from 'vue'; import { reactive } from 'vue';
defineOptions({ name: 'LoginPage' }); defineOptions({ name: 'LoginPage' });