Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 83d8f4f

Browse files
committed
链接项目部署视频的地址,方便大家部署。
1 parent 4d4bf7f commit 83d8f4f

File tree

8 files changed

+545
-443
lines changed

8 files changed

+545
-443
lines changed

‎README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,15 @@
138138

139139

140140
## 4、技术文档
141+
### 部署视频
142+
https://www.bilibili.com/video/BV1qi4y197JF?spm_id_from=333.999.0.0
143+
141144
### [后端快速部署](back.md)
145+
142146
### [前端快速部署](front.md)
147+
143148
### [关键知识点讲述](knowledge.md)
149+
144150
### [业务开发](developer.md)
145151

146152

‎api/config/auth.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@
7171
*/
7272

7373
'providers' => [
74-
// 'users' => [
75-
// 'driver' => 'eloquent',
76-
// 'model' => App\Models\User::class,
77-
// ],
74+
'users' => [
75+
'driver' => 'eloquent',
76+
'model' => App\Models\User::class,
77+
],
7878
'admins' => [
7979
'driver' => 'eloquent',
8080
'model' => App\Models\Admin::class,

‎element/.env.development‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# just a flag
22
ENV = 'development'
33

4-
# base api
4+
# base api 后端接口地址,请注意/api/admin必须有,lv6.template.test 则表示部署后端代码的域名
55

6-
VUE_APP_BASE_API = 'http://lv6.template.test/api/admin'
6+
VUE_APP_BASE_API = 'http://api.temp.test/api/admin'
77

88
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
99
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
@@ -18,5 +18,7 @@ VUE_APP_WEBSOCKET = ON
1818
# VUE_APP_SINGLE_LOGIN = ON 代表任何时候同一用户只能一个点登陆,后面登陆会迫使之前登陆下线,其它值则表示关闭
1919
VUE_APP_SINGLE_LOGIN = ON
2020

21+
# 第三方登录以及相关登录的前端页面设置
22+
VUE_APP_THREE_LOGIN = OFF
2123
VUE_APP_GITHUB_CALLBACK = http://localhost:8006/oauth/github/callback
22-
VUE_APP_GITEE_CALLBACK = http://localhost:8006/oauth/gitee/callback
24+
VUE_APP_GITEE_CALLBACK = http://localhost:8006/oauth/gitee/callback

‎element/.env.production‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ VUE_APP_WEBSOCKET = ON
88
# VUE_APP_SINGLE_LOGIN = ON 代表任何时候同一用户只能一个点登陆,后面登陆会迫使之前登陆下线,其它值则表示关闭
99
VUE_APP_SINGLE_LOGIN = ON
1010

11+
# 第三方登录以及相关登录的前端页面设置
12+
VUE_APP_THREE_LOGIN = OFF
1113
VUE_APP_GITHUB_CALLBACK = https://elem.halian.net/oauth/github/callback
1214
VUE_APP_GITEE_CALLBACK = https://elem.halian.net/oauth/gitee/callback

‎element/src/layout/components/Navbar.vue‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ export default {
4242
this.$store.dispatch('app/toggleSideBar');
4343
},
4444
async logout() {
45-
if (process.env.VUE_APP_WEBSOCKET === 'ON' && process.env.VUE_APP_SINGLE_LOGIN === 'ON' ) {
46-
window.channel.unbind('UserLogin');
47-
window.channel = null;
48-
}
45+
//if (process.env.VUE_APP_WEBSOCKET === 'ON' && process.env.VUE_APP_SINGLE_LOGIN === 'ON' ) {
46+
// window.channel.unbind('UserLogin');
47+
// window.channel = null;
48+
//}
4949
await this.$store.dispatch('user/logout');
5050
// this.$router.push(`/login?redirect=${this.$route.fullPath}`);
5151
this.$router.push(`/login`);

‎element/src/layout/index.vue‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -74,28 +74,28 @@ export default {
7474
host: host + ":6001"
7575
};
7676
window.Echo = new Echo(data);
77-
if (process.env.VUE_APP_SINGLE_LOGIN === "ON") {
78-
// 用户仅能一个点登陆
79-
window.channel = window.Echo.channel("leave." + this.name).listen(
80-
"UserLogin",
81-
(e) => {
82-
this.$alert(
83-
"当前用户在其它地方已经登录,现在即将退出",
84-
"登录警告",
85-
{
86-
confirmButtonText: "确定",
87-
callback: (action) => {
88-
this.$store.dispatch("user/resetFrontendToken").then(() => {
89-
window.channel.unbind("UserLogin");
90-
window.channel = null;
91-
this.$router.push(`/login`);
92-
});
93-
}
94-
}
95-
);
96-
}
97-
);
98-
}
77+
//if (process.env.VUE_APP_SINGLE_LOGIN === "ON") {
78+
// // 用户仅能一个点登陆
79+
// window.channel = window.Echo.channel("leave." + this.name).listen(
80+
// "UserLogin",
81+
// (e) => {
82+
// this.$alert(
83+
// "当前用户在其它地方已经登录,现在即将退出",
84+
// "登录警告",
85+
// {
86+
// confirmButtonText: "确定",
87+
// callback: (action) => {
88+
// this.$store.dispatch("user/resetFrontendToken").then(() => {
89+
// window.channel.unbind("UserLogin");
90+
// window.channel = null;
91+
// this.$router.push(`/login`);
92+
// });
93+
// }
94+
// }
95+
// );
96+
// }
97+
// );
98+
//}
9999
}
100100
},
101101
methods: {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /