mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
docs: 开发环境运行地址提示(#302)
This commit is contained in:
parent
d46b5902e4
commit
c65851c78f
@ -30,6 +30,7 @@ npm install
|
||||
|
||||
npm run dev
|
||||
```
|
||||
Browser access: http://127.0.0.1:5173/
|
||||
|
||||
|
||||
# 📚 Features
|
||||
|
@ -26,6 +26,7 @@ npm install
|
||||
|
||||
npm run dev
|
||||
```
|
||||
浏览器访问:http://127.0.0.1:5173/
|
||||
|
||||
|
||||
# 📚 功能列表
|
||||
|
@ -17,6 +17,7 @@ import { LOCALSTORAGE_KEY_DISCARDED_DB } from '@/configs/storage'
|
||||
import { deleteDiscardedDB } from '@/utils/database'
|
||||
import { isPC } from '@/utils/common'
|
||||
import type { Slide } from '@/types/slides'
|
||||
import message from './utils/message'
|
||||
import api from '@/services'
|
||||
|
||||
import Editor from './views/Editor/index.vue'
|
||||
@ -38,6 +39,10 @@ if (import.meta.env.MODE !== 'development') {
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
if (location.hostname === 'localhost') {
|
||||
message.error('请访问 http://127.0.0.1:5173/ 进入开发环境', { duration: 0 })
|
||||
return
|
||||
}
|
||||
api.getFileData('slides').then((slides: Slide[]) => {
|
||||
slidesStore.setSlides(slides)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user