Skip to content

Commit

Permalink
项目开源发布 tagv1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
electronic-pig committed Mar 19, 2024
1 parent 9a6c30e commit dbb3f1a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 开发环境 后端接口地址
VITE_APP_BASE_URL='http://192.168.43.88:5000'
VITE_APP_BASE_URL='your_backend_api_address:port'
// 开发环境 图片服务接口地址
VITE_APP_PHOTO_URL="http://192.168.43.88:20000"
VITE_APP_PHOTO_URL="your_image_service_address:port"
4 changes: 2 additions & 2 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 生产环境 后端接口地址
VITE_APP_BASE_URL='http://172.16.0.85:5000'
VITE_APP_BASE_URL='your_backend_api_address:port'
// 生产环境 图片服务接口地址
VITE_APP_PHOTO_URL="http://192.168.43.88:20000"
VITE_APP_PHOTO_URL="your_image_service_address:port"
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,4 @@ coverage
*.sln
*.sw?

.VSCodeCounter

/public/photos
.VSCodeCounter
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,14 @@ npm install
```

## 编译运行

-`main.js`中填写你的BaiduMap_api_key
-`.env.development`中填写你的后端服务地址
```sh
npm run dev
```

## 打包部署(可选)

-`.env.production`中填写你的后端服务地址
```sh
npm run build
```
Expand Down
Binary file removed src/assets/image/mask.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component);
}
app.use(BaiduMap, {
ak: "eIgFzfEycAEaEXXAUN0rQc1G8WMPqMqM",
ak: "your_BaiduMap_api_key",
});
app.component(VueFeather.name, VueFeather);
app.use(router).use(ElementPlus, { locale: zhCn }).mount("#app");
Expand Down
1 change: 0 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import VueDevTools from 'vite-plugin-vue-devtools'
Expand Down

0 comments on commit dbb3f1a

Please sign in to comment.