|
@@ -1,57 +1,41 @@
|
|
|
-# Nuxt 3 Minimal Starter
|
|
|
+# 🚀 项目名称 xinkeaboard-web
|
|
|
|
|
|
Look at the [nuxt 3 documentation](https://v3.nuxtjs.org) to learn more.
|
|
|
|
|
|
-## Setup
|
|
|
+## ⚙️ 环境准备
|
|
|
|
|
|
-Make sure to install the dependencies:
|
|
|
+建议使用 [nvm](https://github.com/nvm-sh/nvm) 管理 Node.js 版本:
|
|
|
|
|
|
```bash
|
|
|
-# yarn
|
|
|
-yarn install
|
|
|
-
|
|
|
-# npm
|
|
|
-npm install
|
|
|
-
|
|
|
-# pnpm
|
|
|
-pnpm install --shamefully-hoist
|
|
|
+nvm install 18.20.4
|
|
|
+nvm use 18.20.4
|
|
|
```
|
|
|
|
|
|
-## Development Server
|
|
|
-
|
|
|
-Start the development server on http://localhost:3000
|
|
|
+安装 pnpm:
|
|
|
|
|
|
-Config Domain In Index.js [/composables/index.js]
|
|
|
```bash
|
|
|
-export const apiUrl = 'https://www.b2btopsite.com/api/';
|
|
|
-export const defaultUrl = 'https://www.b2btopsite.com/api/';
|
|
|
-export const supplierUrl = 'https://seller.b2btopsite.com/user/login';
|
|
|
+npm install -g pnpm@10.12.1
|
|
|
```
|
|
|
|
|
|
+## 安装依赖
|
|
|
+
|
|
|
```bash
|
|
|
-npm run dev
|
|
|
+pnpm install
|
|
|
```
|
|
|
|
|
|
-## Production
|
|
|
+## 启动开发环境
|
|
|
|
|
|
Config Domain In Index.js [/composables/index.js]
|
|
|
```bash
|
|
|
-export const apiUrl = 'https://www.b2btopsite.com/api/';
|
|
|
-export const defaultUrl = 'https://www.b2btopsite.com/api/';
|
|
|
+export const apiUrl = 'http://54.46.9.88:8001/';
|
|
|
+export const defaultUrl = 'http://54.46.9.88:8001/';
|
|
|
export const supplierUrl = 'https://seller.b2btopsite.com/user/login';
|
|
|
```
|
|
|
|
|
|
-Build the application for production:
|
|
|
-
|
|
|
-```bash
|
|
|
-npm run build
|
|
|
-```
|
|
|
-
|
|
|
-Locally preview production build:
|
|
|
-
|
|
|
```bash
|
|
|
-npm run preview
|
|
|
+pnpm dev
|
|
|
```
|
|
|
|
|
|
+Start the development server on http://localhost:3000
|
|
|
|
|
|
Checkout the [deployment documentation](https://v3.nuxtjs.org/guide/deploy/presets) for more information.
|