From e53c2db5326977b56730491bc9c91c7848fcc5a4 Mon Sep 17 00:00:00 2001 From: zyronon Date: Sat, 30 Mar 2024 16:05:49 +0800 Subject: [PATCH] save --- README-en-US.md | 46 ++++++++++++++++++++++++---------------------- README.md | 4 ++-- src/App.vue | 6 ++---- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/README-en-US.md b/README-en-US.md index 69a5f09..e2bcccb 100644 --- a/README-en-US.md +++ b/README-en-US.md @@ -9,22 +9,24 @@

- douyin是一个模仿抖音的移动端短视频项目,它基于 Vue, -Vite实现。使用了最新的Vue全家桶技术栈,后台数据通过 -mock-js搭建 + douyinIt is a mobile short video project imitating Douyin., +It is based on Vue, Vite implementation. +The latest Vue family bucket technology stack is used, and the background data is built by axios-mock-adapter.

## 📸 在线访问 -Vercel: (国内推荐访问这个) +Netlify: (If you are in China, you need Vpn) -Netlify: (需要翻墙) +Vercel: (This is recommended in China.) -**注意**:PC浏览器请用手机模式访问。先按F12调出控制台,再按Ctrl+Shift+M切换到手机模式 +**Note**: PC browsers should be accessed in mobile mode. + Press F12 to bring up the console, and then press Ctrl+Shift+M to switch to mobile mode. -**注意**:手机请用[Via浏览器](https://viayoo.com/zh-cn/)或者Chrome浏览器预览。其他浏览器会强制将视频全屏,导致样式都失效 +**Note**: for mobile phones, please use [Via browser] (https://viayoo.com/zh-cn/) or Chrome browser preview). + Other browsers will force the video to be full-screen, invalidating the style. -## 🖼️ 效果截图 +## 🖼️ Effect screenshot
@@ -39,26 +41,26 @@ Netlify: (需要翻墙)
-## 运行项目 +## Run the project -本项目是基于`Vue`开发的,需要 node 环境来运行。 +This project is based on `Vue` and needs node environment to run. -1. 安装 NodeJS,参考[官方文档](https://nodejs.org/en/download) -2. 使用 `git clone https://github.com/zyronon/douyin.git` 下载项目到本地 -3. 进入项目目录` cd douyin `,在项目根目录下,运行`npm install`来下载依赖。 -4. 执行`npm run dev`来启动项目,项目默认地址为[`http://localhost:3000`](http://localhost:3000) -5. 在浏览器中打开[`http://localhost:3000`](http://localhost:3000) 来访问项目。 - Chrome切换成手机模式快捷键,先按F12调出控制台,再按Ctrl+Shift+M +1. To install NodeJS, refer to [official documentation] (https://nodejs.org/en/download)) +2. Use `git clone https://github.com/zyronon/douyin.git` to download the project locally. +3. Enter the project directory `npm install` and run `project install` under the project root directory to download the dependency. +4. Execute `project dev` to start the project. The default address of the project is [`http://localhost:3000`](http://localhost:3000)]. +5. Open [`http://localhost:3000`](http://localhost:3000)] in the browser to access the project. +Chrome switch to mobile phone mode shortcut key, press F12 to bring up the console, and then press Ctrl+Shift+M -## 🎙 功能与建议 +## 🎙 Functions and suggestions -目前项目处于开发初期,新功能正在持续添加中,如果你对软件有任何功能与建议,欢迎在 Issues 中提出 -如果你也喜欢本软件的设计思想,欢迎提交 pr,非常感谢你对我们的支持! +At present, the project is in the early stage of development, and new features are being added continuously. If you have any functions and suggestions for the software, you are welcome to put forward them in Issues. +If you also like the design idea of this software, welcome to submit pr, thank you very much for your support! -## 联系我 +## Contact me -您可以联系我的邮箱 zyronon@163.com +You can contact my email address < a href= "mailto:zyronon@163.com" > zyronon@163.com < / a > -## MIT许可协议 +## MIT license Agreement [MIT](LICENSE) diff --git a/README.md b/README.md index 9a7d123..aac149a 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@

douyin是一个模仿抖音的移动端短视频项目,它基于 Vue, -Vite实现。使用了最新的Vue全家桶技术栈,后台数据通过 -mock-js搭建 +Vite实现。使用了最新的Vue全家桶技术栈,接口数据通过 +axios-mock-adapter模拟

## 📸 在线访问 diff --git a/src/App.vue b/src/App.vue index 06bbc2b..782ee5e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -61,12 +61,10 @@ export default { this.setVh() // 监听resize事件 视图大小发生变化就重新计算1vh的值 window.addEventListener('resize', () => { - // location.reload() + location.reload() this.setVh() }) - // window.onresize = () => { - // - // } + try { navigator.control.gesture(false); } catch (e) {