refactor: 将导入路径从波浪号(~)改为 @- 修改了多个文件中的导入路径,将 ~/ 替换为 @/
- 这个改动统一了项目中的导入路径格式,提高了代码的一致性和可维护性
This commit is contained in:
parent
b876aac28a
commit
e30b993601
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { useAppHeaderRouteNames as routeWhiteList } from '~/config'
|
import { useAppHeaderRouteNames as routeWhiteList } from '@/config'
|
||||||
import { goodStore } from "@/stores/goods/index.js";
|
import { goodStore } from "@/stores/goods/index.js";
|
||||||
const { fullLive } = goodStore()
|
const { fullLive } = goodStore()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import { useRouter, useRoute } from 'vue-router';
|
import { useRouter, useRoute } from 'vue-router';
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { senCode, userLogin } from "@/api/auth/index.js";
|
import { senCode, userLogin } from "@/api/auth/index.js";
|
||||||
import { authStore } from "~/stores/auth/index.js";
|
import { authStore } from "@/stores/auth/index.js";
|
||||||
import { message } from '@/components/x-message/useMessage.js'
|
import { message } from '@/components/x-message/useMessage.js'
|
||||||
// ... 现有导入 ...
|
// ... 现有导入 ...
|
||||||
import FingerprintJS from '@fingerprintjs/fingerprintjs'
|
import FingerprintJS from '@fingerprintjs/fingerprintjs'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { userArtworks } from "~/api/goods/index.js";
|
import { userArtworks } from "@/api/goods/index.js";
|
||||||
import { authStore } from "~/stores/auth/index.js";
|
import { authStore } from "@/stores/auth/index.js";
|
||||||
|
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
layout: 'default',
|
layout: 'default',
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import {goodStore} from "~/stores/goods/index.js";
|
import {goodStore} from "@/stores/goods/index.js";
|
||||||
import xImage from '@/components/x-image/index.vue'
|
import xImage from '@/components/x-image/index.vue'
|
||||||
const {
|
const {
|
||||||
auctionDetail
|
auctionDetail
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import xPopup from '@/components/x-popup/index.vue'
|
import xPopup from '@/components/x-popup/index.vue'
|
||||||
import ItemDetail from "@/components/itemDetail/index.vue";
|
import ItemDetail from "@/components/itemDetail/index.vue";
|
||||||
import {goodStore} from "~/stores/goods/index.js";
|
import {goodStore} from "@/stores/goods/index.js";
|
||||||
const {
|
const {
|
||||||
artWorkDetail
|
artWorkDetail
|
||||||
} = goodStore()
|
} = goodStore()
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import SignaturePad from '~/components/SignaturePad.vue'
|
import SignaturePad from '@/components/SignaturePad.vue'
|
||||||
|
|
||||||
const signature = ref('')
|
const signature = ref('')
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import lockOpen from "@/static/images/lock4@2x.png";
|
|||||||
import { liveStore } from "@/stores/live/index.js";
|
import { liveStore } from "@/stores/live/index.js";
|
||||||
import xButton from '@/components/x-button/index.vue'
|
import xButton from '@/components/x-button/index.vue'
|
||||||
import tangPopup from './tangPopup.vue'
|
import tangPopup from './tangPopup.vue'
|
||||||
import {goodStore} from "~/stores/goods/index.js";
|
import {goodStore} from "@/stores/goods/index.js";
|
||||||
const { quoteStatus, changeStatus,show,auctionData ,getSocketData} = liveStore();
|
const { quoteStatus, changeStatus,show,auctionData ,getSocketData} = liveStore();
|
||||||
const {pageRef} = goodStore();
|
const {pageRef} = goodStore();
|
||||||
const showTang=ref(false)
|
const showTang=ref(false)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import xPopup from '@/components/x-popup/index.vue'
|
import xPopup from '@/components/x-popup/index.vue'
|
||||||
import {goodStore} from "~/stores/goods/index.js";
|
import {goodStore} from "@/stores/goods/index.js";
|
||||||
import xImage from '@/components/x-image/index.vue'
|
import xImage from '@/components/x-image/index.vue'
|
||||||
import DetailPopup from '@/pages/home/components/DetailPopup/index.vue'
|
import DetailPopup from '@/pages/home/components/DetailPopup/index.vue'
|
||||||
const {pageRef,itemList} = goodStore();
|
const {pageRef,itemList} = goodStore();
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
import {ref, onMounted, onBeforeUnmount} from 'vue'
|
import {ref, onMounted, onBeforeUnmount} from 'vue'
|
||||||
import Aliplayer from 'aliyun-aliplayer'
|
import Aliplayer from 'aliyun-aliplayer'
|
||||||
import 'aliyun-aliplayer/build/skins/default/aliplayer-min.css'
|
import 'aliyun-aliplayer/build/skins/default/aliplayer-min.css'
|
||||||
import sideButton from '~/pages/liveRoom/components/SideButton/index.vue'
|
import sideButton from '@/pages/liveRoom/components/SideButton/index.vue'
|
||||||
import broadcast from '~/pages/liveRoom/components/Broadcast/index.vue'
|
import broadcast from '@/pages/liveRoom/components/Broadcast/index.vue'
|
||||||
import {liveStore} from "~/stores/live/index.js";
|
import {liveStore} from "@/stores/live/index.js";
|
||||||
import paymentResults from '~/pages/liveRoom/components/PaymentResults/index.vue'
|
import paymentResults from '@/pages/liveRoom/components/PaymentResults/index.vue'
|
||||||
import paymentInput from '~/pages/liveRoom/components/PaymentInput/index.vue'
|
import paymentInput from '@/pages/liveRoom/components/PaymentInput/index.vue'
|
||||||
import xButton from '@/components/x-button/index.vue'
|
import xButton from '@/components/x-button/index.vue'
|
||||||
import {goodStore} from "~/stores/goods/index.js";
|
import {goodStore} from "@/stores/goods/index.js";
|
||||||
const {auctionDetail,getAuctionDetail} = goodStore();
|
const {auctionDetail,getAuctionDetail} = goodStore();
|
||||||
const player = ref(null)
|
const player = ref(null)
|
||||||
const {quoteStatus, changeStatus, show, playerId, show1} = liveStore()
|
const {quoteStatus, changeStatus, show, playerId, show1} = liveStore()
|
||||||
|
@ -3,7 +3,7 @@ import { useRouter, useRoute } from 'vue-router';
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import countryCode from '../countryRegion/data/index.js'
|
import countryCode from '../countryRegion/data/index.js'
|
||||||
import {senCode, userLogin} from "@/api/auth/index.js";
|
import {senCode, userLogin} from "@/api/auth/index.js";
|
||||||
import {authStore} from "~/stores/auth/index.js";
|
import {authStore} from "@/stores/auth/index.js";
|
||||||
import {message} from '@/components/x-message/useMessage.js'
|
import {message} from '@/components/x-message/useMessage.js'
|
||||||
const {userInfo,token}= authStore()
|
const {userInfo,token}= authStore()
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import {userArtworks} from "~/api/goods/index.js";
|
import {userArtworks} from "@/api/goods/index.js";
|
||||||
import {authStore} from "~/stores/auth/index.js";
|
import {authStore} from "@/stores/auth/index.js";
|
||||||
import xImage from '@/components/x-image/index.vue'
|
import xImage from '@/components/x-image/index.vue'
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
layout: 'default',
|
layout: 'default',
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { useRouter, useRoute } from 'vue-router';
|
import { useRouter, useRoute } from 'vue-router';
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import {userUpdate} from "~/api/auth/index.js";
|
import {userUpdate} from "@/api/auth/index.js";
|
||||||
import {message} from '@/components/x-message/useMessage.js'
|
import {message} from '@/components/x-message/useMessage.js'
|
||||||
import detail from './components/detail.vue'
|
import detail from './components/detail.vue'
|
||||||
import {authStore} from "~/stores/auth/index.js";
|
import {authStore} from "@/stores/auth/index.js";
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const showPicker = ref(false);
|
const showPicker = ref(false);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { setupHttp } from '~/api/http'
|
import { setupHttp } from '@/api/http'
|
||||||
|
|
||||||
export default defineNuxtPlugin(() => {
|
export default defineNuxtPlugin(() => {
|
||||||
setupHttp()
|
setupHttp()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { createGlobalState } from '@vueuse/core'
|
import { createGlobalState } from '@vueuse/core'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { artworkList, defaultDetail, artworkDetail } from "~/api/goods/index.js"
|
import { artworkList, defaultDetail, artworkDetail } from "@/api/goods/index.js"
|
||||||
|
|
||||||
export const goodStore = createGlobalState(() => {
|
export const goodStore = createGlobalState(() => {
|
||||||
// 状态定义
|
// 状态定义
|
||||||
|
Loading…
Reference in New Issue
Block a user