Commit 959b6809 by Jaxon

chron: 目录结构修正

1 parent e5d01cbf
Pipeline #66 for 959b6809 failed in 0 seconds
Showing 41 changed files with 133 additions and 126 deletions
{ {
"name": "@venus/venus-usedcar-h5", "name": "venus-usedcar-h5",
"version": "1.0.0", "version": "1.0.0",
"description": "二手车H5移动端应用", "description": "二手车H5移动端应用",
"private": true, "private": true,
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
"vant": "^4.9.0", "vant": "^4.9.0",
"vue": "catalog:", "vue": "catalog:",
"vue-router": "catalog:" "vue-router": "catalog:"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "catalog:", "@types/node": "catalog:",
......
export * from "./modules/car.ts";
export * from "./modules/user.ts";
import type { PageData } from "@/utils/request"; import type { PageData } from "@utils/request.ts";
import { get, post } from "@/utils/request";
import { get, post } from "@utils/request.ts";
export interface CarItem { export interface CarItem {
id: number; id: number;
...@@ -27,13 +28,13 @@ export interface CarListParams { ...@@ -27,13 +28,13 @@ export interface CarListParams {
maxPrice?: number; maxPrice?: number;
city?: string; city?: string;
keyword?: string; keyword?: string;
sortBy?: "price_asc" | "price_desc" | "mileage_asc" | "newest"; sortBy?: "mileage_asc" | "newest" | "price_asc" | "price_desc";
} }
export interface CarFilter { export interface CarFilter {
brands: Array<{ label: string; value: string }>; brands: Array<{ label: string; value: string }>;
cities: Array<{ label: string; value: string }>; cities: Array<{ label: string; value: string }>;
priceRanges: Array<{ label: string; min: number; max: number }>; priceRanges: Array<{ label: string; max: number; min: number; }>;
} }
export function getCarList(params?: CarListParams) { export function getCarList(params?: CarListParams) {
......
import type { UserInfo } from "@/stores/modules/user"; import type { UserInfo } from "@stores/modules/user.ts";
import { get, post } from "@/utils/request";
import { get, post } from "@utils/request.ts";
export interface LoginParams { export interface LoginParams {
phone: string; phone: string;
...@@ -27,7 +28,7 @@ export function getUserInfo() { ...@@ -27,7 +28,7 @@ export function getUserInfo() {
return get<UserInfo>("/api/user/info"); return get<UserInfo>("/api/user/info");
} }
export function updateUserInfo(data: Partial<Pick<UserInfo, "nickname" | "avatar">>) { export function updateUserInfo(data: Partial<Pick<UserInfo, "avatar" | "nickname">>) {
return post<UserInfo>("/api/user/update", data); return post<UserInfo>("/api/user/update", data);
} }
......
@use "./variables" as *; @use "variables" as *;
// ===== Vant 主题定制(通过 CSS 变量覆盖)===== // ===== Vant 主题定制(通过 CSS 变量覆盖)=====
:root { :root {
......
...@@ -4,15 +4,16 @@ ...@@ -4,15 +4,16 @@
*/ */
import { Defaults, Request } from "glsk-toolkit"; import { Defaults, Request } from "glsk-toolkit";
import { showToast } from "vant"; import { showToast } from "vant";
import { CONFIG_CACHE_KEY, CONFIG_CENTER_URL } from "./constants";
import { CONFIG_CACHE_KEY, CONFIG_CENTER_URL } from "./constants.ts";
const TOKEN_KEY = "venus_usedcar_token"; const TOKEN_KEY = "venus_usedcar_token";
const defaultBaseURL = import.meta.env.VITE_API_BASE_URL ?? ""; const defaultBaseURL = import.meta.env.VITE_API_BASE_URL ?? "";
let config: Record<string, unknown> = {}; let config: Record<string, unknown> = {};
let requestInstance: Request | null = null; let requestInstance: null | Request = null;
function getCached<T>(key: string): T | null { function getCached<T>(key: string): null | T {
try { try {
const item = localStorage.getItem(key); const item = localStorage.getItem(key);
return item ? (JSON.parse(item) as T) : null; return item ? (JSON.parse(item) as T) : null;
...@@ -37,7 +38,7 @@ function getToken(): string { ...@@ -37,7 +38,7 @@ function getToken(): string {
/** /**
* 获取 Request 实例 * 获取 Request 实例
*/ */
export function getRequestApi(): Request | null { export function getRequestApi(): null | Request {
return requestInstance; return requestInstance;
} }
...@@ -57,20 +58,31 @@ function initRequestInstance(cfg: Record<string, unknown>): void { ...@@ -57,20 +58,31 @@ function initRequestInstance(cfg: Record<string, unknown>): void {
}, },
events: { events: {
error: (error: unknown) => { error: (error: unknown) => {
const err = error as { msg?: string; message?: string; response?: { status?: number } }; const err = error as { message?: string; msg?: string; response?: { status?: number } };
const msg = err?.msg ?? err?.message ?? String(error); const msg = err?.msg ?? err?.message ?? String(error);
const status = err?.response?.status; const status = err?.response?.status;
if (status === 401) { switch (status) {
case 401: {
showToast("登录已过期,请重新登录"); showToast("登录已过期,请重新登录");
localStorage.removeItem(TOKEN_KEY); localStorage.removeItem(TOKEN_KEY);
window.location.href = "/login"; window.location.href = "/login";
} else if (status === 403) {
break;
}
case 403: {
showToast("暂无权限"); showToast("暂无权限");
} else if (status === 500) {
break;
}
case 500: {
showToast("服务器异常,请稍后重试"); showToast("服务器异常,请稍后重试");
} else {
break;
}
default: {
showToast(msg || "网络错误,请检查网络连接"); showToast(msg || "网络错误,请检查网络连接");
} }
}
}, },
}, },
}; };
...@@ -111,8 +123,8 @@ export async function fetchConfig(): Promise<Record<string, unknown>> { ...@@ -111,8 +123,8 @@ export async function fetchConfig(): Promise<Record<string, unknown>> {
} else { } else {
initRequestInstance({ apiBaseUrl: defaultBaseURL }); initRequestInstance({ apiBaseUrl: defaultBaseURL });
} }
} catch (e) { } catch (error) {
console.warn("[配置中心] 获取失败,使用默认配置:", e); console.warn("[配置中心] 获取失败,使用默认配置:", error);
initRequestInstance({ apiBaseUrl: defaultBaseURL }); initRequestInstance({ apiBaseUrl: defaultBaseURL });
} }
return config; return config;
......
export { CONFIG_CENTER_URL, CONFIG_CACHE_KEY } from "./constants";
export { export {
clearConfigCache,
fetchConfig, fetchConfig,
getConfig, getConfig,
getRequestApi, getRequestApi,
clearConfigCache, } from "./center.ts";
} from "./center"; export { CONFIG_CACHE_KEY, CONFIG_CENTER_URL } from "./constants.ts";
import { createApp } from "vue"; import { createApp } from "vue";
import { createPinia } from "pinia"; import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"; import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import App from "./App.vue"; import App from "./App.vue";
import { fetchConfig } from "./config/center.ts";
import router from "./router"; import router from "./router";
import { fetchConfig } from "./config/center";
import "./assets/styles/reset.scss"; import "@assets/styles/reset.scss";
import "./assets/styles/index.scss"; import "@assets/styles/index.scss";
async function bootstrap() { async function bootstrap() {
await fetchConfig(); await fetchConfig();
......
import { createRouter, createWebHistory } from "vue-router"; import { createRouter, createWebHistory } from "vue-router";
import { showLoadingToast, closeToast } from "vant";
import routes from "./routes"; import { closeToast, showLoadingToast } from "vant";
import routes from "./routes.ts";
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHistory(import.meta.env.BASE_URL),
......
...@@ -12,7 +12,7 @@ const routes: RouteRecordRaw[] = [ ...@@ -12,7 +12,7 @@ const routes: RouteRecordRaw[] = [
{ {
path: "home", path: "home",
name: "Home", name: "Home",
component: () => import("@/views/home/index.vue"), component: () => import("@views/home/index.vue"),
meta: { meta: {
title: "首页", title: "首页",
keepAlive: true, keepAlive: true,
...@@ -22,7 +22,7 @@ const routes: RouteRecordRaw[] = [ ...@@ -22,7 +22,7 @@ const routes: RouteRecordRaw[] = [
{ {
path: "car-list", path: "car-list",
name: "CarList", name: "CarList",
component: () => import("@/views/car-list/index.vue"), component: () => import("@views/car-list/index.vue"),
meta: { meta: {
title: "找车", title: "找车",
keepAlive: true, keepAlive: true,
...@@ -32,7 +32,7 @@ const routes: RouteRecordRaw[] = [ ...@@ -32,7 +32,7 @@ const routes: RouteRecordRaw[] = [
{ {
path: "mine", path: "mine",
name: "Mine", name: "Mine",
component: () => import("@/views/mine/index.vue"), component: () => import("@views/mine/index.vue"),
meta: { meta: {
title: "我的", title: "我的",
keepAlive: false, keepAlive: false,
...@@ -44,7 +44,7 @@ const routes: RouteRecordRaw[] = [ ...@@ -44,7 +44,7 @@ const routes: RouteRecordRaw[] = [
{ {
path: "/car-detail/:id", path: "/car-detail/:id",
name: "CarDetail", name: "CarDetail",
component: () => import("@/views/car-detail/index.vue"), component: () => import("@views/car-detail/index.vue"),
meta: { meta: {
title: "车辆详情", title: "车辆详情",
showTabBar: false, showTabBar: false,
...@@ -53,7 +53,7 @@ const routes: RouteRecordRaw[] = [ ...@@ -53,7 +53,7 @@ const routes: RouteRecordRaw[] = [
{ {
path: "/:pathMatch(.*)*", path: "/:pathMatch(.*)*",
name: "NotFound", name: "NotFound",
component: () => import("@/views/404/index.vue"), component: () => import("@views/404/index.vue"),
meta: { meta: {
title: "页面不存在", title: "页面不存在",
}, },
......
export { useAppStore } from "./modules/app.ts";
export { useUserStore } from "./modules/user.ts";
export type { UserInfo } from "./modules/user.ts";
import { getRequestApi } from "@/config/center.ts";
/** /**
* 请求封装 - 基于 glsk-toolkit Request * 请求封装 - 基于 glsk-toolkit Request
* 参考 gscrequest.ts 模式,Authorization 通过 center 拦截器统一处理 * 参考 gscrequest.ts 模式,Authorization 通过 center 拦截器统一处理
*/ */
import { showToast } from "vant"; import { showToast } from "vant";
import { getRequestApi } from "@/config/center";
export interface ApiResponse<T = unknown> { export interface ApiResponse<T = unknown> {
code: number; code: number;
...@@ -46,7 +46,7 @@ async function handleResponse<T>(promise: Promise<unknown>): Promise<T> { ...@@ -46,7 +46,7 @@ async function handleResponse<T>(promise: Promise<unknown>): Promise<T> {
return res as T; return res as T;
} }
showToast(data?.message || "请求失败"); showToast(data?.message || "请求失败");
return Promise.reject(new Error(data?.message || "请求失败")); throw new Error(data?.message || "请求失败");
} }
function get<T = unknown>( function get<T = unknown>(
......
...@@ -12,16 +12,18 @@ function goHome() { ...@@ -12,16 +12,18 @@ function goHome() {
<div class="not-found-page"> <div class="not-found-page">
<van-empty description="页面不存在" image="error"> <van-empty description="页面不存在" image="error">
<template #description> <template #description>
<p class="empty-title">页面不存在</p> <p class="empty-title">
<p class="empty-desc">您访问的页面已移动或不存在</p> 页面不存在
</p>
<p class="empty-desc">
您访问的页面已移动或不存在
</p>
</template> </template>
<van-button <van-button class="back-btn"
color="#ee0a24"
round round
type="primary" type="primary"
color="#ee0a24" @click="goHome">
class="back-btn"
@click="goHome"
>
返回首页 返回首页
</van-button> </van-button>
</van-empty> </van-empty>
...@@ -29,7 +31,7 @@ function goHome() { ...@@ -29,7 +31,7 @@ function goHome() {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@use "@/assets/styles/variables" as *; @use "@assets/styles/variables" as *;
.not-found-page { .not-found-page {
display: flex; display: flex;
......
<script setup lang="ts"> <script setup lang="ts">
import type { CarItem } from "@/api/modules/car"; import type { CarItem } from "@api/modules/car.ts";
import { onMounted, ref } from "vue"; import { onMounted, ref } from "vue";
import { useRoute, useRouter } from "vue-router"; import { useRoute, useRouter } from "vue-router";
import { collectCar, getCarDetail, uncollectCar } from "@/api/modules/car";
import { formatDate, formatMileage } from "@/utils"; import { formatDate, formatMileage } from "@/utils";
import { collectCar, getCarDetail, uncollectCar } from "@api/modules/car.ts";
import { showConfirmDialog, showToast } from "vant"; import { showConfirmDialog, showToast } from "vant";
const route = useRoute(); const route = useRoute();
...@@ -226,7 +226,7 @@ onMounted(() => { ...@@ -226,7 +226,7 @@ onMounted(() => {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@use "@/assets/styles/variables" as *; @use "@assets/styles/variables" as *;
.car-detail-page { .car-detail-page {
min-height: 100vh; min-height: 100vh;
......
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted } from "vue"; import type { CarItem, CarListParams } from "@api/modules/car.ts";
import { useRouter, useRoute } from "vue-router";
import type { CarItem, CarListParams } from "@/api/modules/car"; import { onMounted, ref } from "vue";
import { getCarList } from "@/api/modules/car"; import { useRoute, useRouter } from "vue-router";
import { formatMileage, formatPrice } from "@/utils"; import { formatMileage, formatPrice } from "@/utils";
import { getCarList } from "@api/modules/car.ts";
const router = useRouter(); const router = useRouter();
const route = useRoute(); const route = useRoute();
...@@ -60,8 +62,8 @@ async function loadData(reset = false) { ...@@ -60,8 +62,8 @@ async function loadData(reset = false) {
brand: ["宝马", "奥迪", "奔驰", "大众"][i % 4], brand: ["宝马", "奥迪", "奔驰", "大众"][i % 4],
model: ["3系", "A4L", "C级", "帕萨特"][i % 4], model: ["3系", "A4L", "C级", "帕萨特"][i % 4],
year: 2019 + (i % 4), year: 2019 + (i % 4),
mileage: 20000 + i * 8000, mileage: 20_000 + i * 8000,
price: 180000 + i * 30000, price: 180_000 + i * 30_000,
city: ["上海", "北京", "广州", "深圳"][i % 4], city: ["上海", "北京", "广州", "深圳"][i % 4],
coverImage: `https://fastly.jsdelivr.net/npm/@vant/assets/apple-${(i % 3) + 1}.jpeg`, coverImage: `https://fastly.jsdelivr.net/npm/@vant/assets/apple-${(i % 3) + 1}.jpeg`,
images: [], images: [],
...@@ -110,62 +112,50 @@ onMounted(() => { ...@@ -110,62 +112,50 @@ onMounted(() => {
<div class="car-list-page"> <div class="car-list-page">
<!-- 搜索栏 --> <!-- 搜索栏 -->
<van-sticky> <van-sticky>
<van-search <van-search v-model="searchValue"
v-model="searchValue"
placeholder="搜索品牌、车型..." placeholder="搜索品牌、车型..."
shape="round" shape="round"
@search="onSearch" @search="onSearch" />
/>
</van-sticky> </van-sticky>
<!-- 排序筛选 --> <!-- 排序筛选 -->
<div class="sort-bar"> <div class="sort-bar">
<van-tabs <van-tabs :model-value="params.sortBy"
:model-value="params.sortBy"
shrink shrink
@change="onSortChange" @change="onSortChange">
> <van-tab v-for="opt in sortOptions"
<van-tab
v-for="opt in sortOptions"
:key="opt.value" :key="opt.value"
:title="opt.label"
:name="opt.value" :name="opt.value"
/> :title="opt.label" />
</van-tabs> </van-tabs>
</div> </div>
<!-- 列表 --> <!-- 列表 -->
<van-pull-refresh v-model="refreshing" @refresh="onRefresh"> <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list <van-list v-model:loading="loading"
v-model:loading="loading"
:finished="finished" :finished="finished"
finished-text="没有更多了" finished-text="没有更多了"
@load="onLoad" @load="onLoad">
> <div v-for="car in carList"
<div
v-for="car in carList"
:key="car.id" :key="car.id"
class="car-list-item card" class="car-list-item card"
@click="onCarClick(car.id)" @click="onCarClick(car.id)">
> <van-image fit="cover"
<van-image
:src="car.coverImage"
width="120"
height="90" height="90"
fit="cover"
lazy-load lazy-load
radius="4" radius="4"
/> :src="car.coverImage"
width="120" />
<div class="car-list-info"> <div class="car-list-info">
<p class="car-title ellipsis-2">{{ car.title }}</p> <p class="car-title ellipsis-2">
{{ car.title }}
</p>
<div class="car-tags"> <div class="car-tags">
<van-tag <van-tag v-for="tag in car.tags.slice(0, 2)"
v-for="tag in car.tags.slice(0, 2)"
:key="tag" :key="tag"
type="primary"
plain plain
size="medium" size="medium"
> type="primary">
{{ tag }} {{ tag }}
</van-tag> </van-tag>
</div> </div>
...@@ -177,7 +167,7 @@ onMounted(() => { ...@@ -177,7 +167,7 @@ onMounted(() => {
<span class="amount">{{ formatPrice(car.price) }}</span> <span class="amount">{{ formatPrice(car.price) }}</span>
<span class="unit">元</span> <span class="unit">元</span>
</div> </div>
<van-icon name="arrow" color="#c8c9cc" /> <van-icon color="#c8c9cc" name="arrow" />
</div> </div>
</div> </div>
</div> </div>
...@@ -187,7 +177,7 @@ onMounted(() => { ...@@ -187,7 +177,7 @@ onMounted(() => {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@use "@/assets/styles/variables" as *; @use "@assets/styles/variables" as *;
.car-list-page { .car-list-page {
background-color: var(--color-bg-page); background-color: var(--color-bg-page);
......
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted } from "vue"; import type { CarItem } from "@api/modules/car.ts";
import { onMounted, ref } from "vue";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import type { CarItem } from "@/api/modules/car";
import { getRecommendedCars } from "@/api/modules/car"; import { getRecommendedCars } from "@api/modules/car.ts";
const router = useRouter(); const router = useRouter();
...@@ -39,8 +41,8 @@ async function loadRecommended() { ...@@ -39,8 +41,8 @@ async function loadRecommended() {
brand: "大众", brand: "大众",
model: "帕萨特", model: "帕萨特",
year: 2021, year: 2021,
mileage: 35000 + i * 5000, mileage: 35_000 + i * 5000,
price: 180000 + i * 10000, price: 180_000 + i * 10_000,
city: "上海", city: "上海",
coverImage: `https://fastly.jsdelivr.net/npm/@vant/assets/apple-${(i % 3) + 1}.jpeg`, coverImage: `https://fastly.jsdelivr.net/npm/@vant/assets/apple-${(i % 3) + 1}.jpeg`,
images: [], images: [],
...@@ -76,32 +78,32 @@ onMounted(() => { ...@@ -76,32 +78,32 @@ onMounted(() => {
<div class="home-page safe-bottom"> <div class="home-page safe-bottom">
<!-- 搜索栏 --> <!-- 搜索栏 -->
<div class="home-search" @click="onSearch"> <div class="home-search" @click="onSearch">
<van-search <van-search background="#ee0a24"
placeholder="搜索品牌、车型..." placeholder="搜索品牌、车型..."
readonly readonly
shape="round" shape="round" />
background="#ee0a24"
/>
</div> </div>
<!-- 轮播图 --> <!-- 轮播图 -->
<van-swipe class="home-banner" :autoplay="3000" indicator-color="#ee0a24"> <van-swipe :autoplay="3000"
class="home-banner"
indicator-color="#ee0a24">
<van-swipe-item v-for="item in bannerList" :key="item.id"> <van-swipe-item v-for="item in bannerList" :key="item.id">
<img :src="item.image" class="banner-img" alt="banner" /> <img alt="banner"
class="banner-img"
:src="item.image" />
</van-swipe-item> </van-swipe-item>
</van-swipe> </van-swipe>
<!-- 分类导航 --> <!-- 分类导航 -->
<div class="home-category card"> <div class="home-category card">
<van-grid :column-num="4" :border="false"> <van-grid :border="false" :column-num="4">
<van-grid-item <van-grid-item v-for="cat in categoryList"
v-for="cat in categoryList"
:key="cat.value" :key="cat.value"
:icon="cat.icon" :icon="cat.icon"
:text="cat.label"
icon-color="#ee0a24" icon-color="#ee0a24"
@click="onCategoryClick(cat.value)" :text="cat.label"
/> @click="onCategoryClick(cat.value)" />
</van-grid> </van-grid>
</div> </div>
...@@ -117,29 +119,25 @@ onMounted(() => { ...@@ -117,29 +119,25 @@ onMounted(() => {
<van-loading v-if="loading" class="loading-center" /> <van-loading v-if="loading" class="loading-center" />
<div v-else class="car-grid"> <div v-else class="car-grid">
<div <div v-for="car in carList"
v-for="car in carList"
:key="car.id" :key="car.id"
class="car-card card" class="car-card card"
@click="onCarClick(car.id)" @click="onCarClick(car.id)">
> <van-image fit="cover"
<van-image
:src="car.coverImage"
width="100%"
height="140" height="140"
fit="cover"
lazy-load lazy-load
/> :src="car.coverImage"
width="100%" />
<div class="car-info"> <div class="car-info">
<p class="car-title ellipsis">{{ car.title }}</p> <p class="car-title ellipsis">
{{ car.title }}
</p>
<div class="car-tags"> <div class="car-tags">
<van-tag <van-tag v-for="tag in car.tags.slice(0, 2)"
v-for="tag in car.tags.slice(0, 2)"
:key="tag" :key="tag"
type="primary"
plain plain
size="medium" size="medium"
> type="primary">
{{ tag }} {{ tag }}
</van-tag> </van-tag>
</div> </div>
...@@ -164,7 +162,7 @@ onMounted(() => { ...@@ -164,7 +162,7 @@ onMounted(() => {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@use "@/assets/styles/variables" as *; @use "@assets/styles/variables" as *;
.home-page { .home-page {
background-color: var(--color-bg-page); background-color: var(--color-bg-page);
......
...@@ -185,7 +185,7 @@ const __APP_VERSION__ = "1.0.0"; ...@@ -185,7 +185,7 @@ const __APP_VERSION__ = "1.0.0";
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@use "@/assets/styles/variables" as *; @use "@assets/styles/variables" as *;
.mine-page { .mine-page {
min-height: 100vh; min-height: 100vh;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"jsxImportSource": "vue", "jsxImportSource": "vue",
"lib": ["ES2020", "DOM", "DOM.Iterable"], "lib": ["ES2020", "DOM", "DOM.Iterable"],
"useDefineForClassFields": true, "useDefineForClassFields": true,
"baseUrl": ".", "baseUrl": "./",
"module": "ESNext", "module": "ESNext",
"moduleResolution": "bundler", "moduleResolution": "bundler",
"paths": { "paths": {
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
"skipLibCheck": true, "skipLibCheck": true,
"types": ["vite/client"] "types": ["vite/client"]
}, },
"references": [{ "path": "./tsconfig.node.json" }], "references": [{ "path": "./tsconfig.node.json"}],
"include": [ "include": [
"env.d.ts", "env.d.ts",
"src/**/*.ts", "src/**/*.ts",
......
...@@ -7,5 +7,7 @@ ...@@ -7,5 +7,7 @@
"skipLibCheck": true, "skipLibCheck": true,
"strict": true "strict": true
}, },
"include": ["vite.config.ts"] "include": [
"vite.config.ts"
]
} }
export * from "./modules/car";
export * from "./modules/user";
export { useAppStore } from "./modules/app";
export { useUserStore } from "./modules/user";
export type { UserInfo } from "./modules/user";
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!