Skip to content

Commit 2df7c40

Browse files
committed
2 parents 88ae450 + 8bee95d commit 2df7c40

30 files changed

+2130
-1
lines changed

frontend

Lines changed: 0 additions & 1 deletion
This file was deleted.

mem4j-frontend/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Mem4j Frontend Project
2+
3+
1. yarn init vite 创建vite项目
4+
yarn install 安装依赖
5+
yarn dev 启动项目
6+
7+
2. yarn add pinia -S 安装pinia,基于vuex的状态管理工具
8+
创建 src/store 使用pinia
9+
10+
3. yarn -i vue-router -S 安装router
11+
创建 src/router
12+
13+
4. yarn add @vueuse/core -S 安装api插件
14+
yarn add axios -S 安装axios
15+
创建 src/api
16+
17+
创建 api 文件,存放请求接口
18+
19+
5. 启动
20+
yarn
21+
yarn dev

mem4j-frontend/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/src/assets/logo.png" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>Arthas OSS</title>
9+
</head>
10+
11+
<body>
12+
<div id="app"></div>
13+
<script type="module" src="/src/main.ts"></script>
14+
</body>
15+
16+
</html>

0 commit comments

Comments
 (0)