Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
875bf45f
Commit
875bf45f
authored
May 27, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加用户名显示
parent
b13807fd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
Bailun.DC.Web.csproj
Bailun.DC.Web/Bailun.DC.Web.csproj
+1
-1
Index.cshtml
Bailun.DC.Web/Pages/Index.cshtml
+2
-2
Startup.cs
Bailun.DC.Web/Startup.cs
+2
-2
common.js
Bailun.DC.Web/wwwroot/js/common.js
+4
-0
No files found.
Bailun.DC.Web/Bailun.DC.Web.csproj
View file @
875bf45f
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.
2
</TargetFramework>
<TargetFramework>netcoreapp2.
1
</TargetFramework>
</PropertyGroup>
<ItemGroup>
...
...
Bailun.DC.Web/Pages/Index.cshtml
View file @
875bf45f
...
...
@@ -47,8 +47,8 @@
<span><img
alt=
"image"
class=
"img-circle"
src=
"css/hplus/img/profile_small.jpg"
/></span>
<a
data-toggle=
"dropdown"
class=
"dropdown-toggle"
href=
"#"
>
<span
class=
"clear"
>
<span
class=
"block m-t-xs"
><strong
class=
"font-bold"
>
Beaut-zihan
</strong></span>
<span
class=
"text-muted text-xs block"
>
百伦数据中心
<b
class=
"caret"
></b>
</span>
<span
class=
"block m-t-xs"
><strong
class=
"font-bold"
id=
"user-job"
>
Beaut-zihan
</strong></span>
<span
class=
"text-muted text-xs block"
id=
"user-name"
>
百伦数据中心
</span>
</span>
</a>
</div>
...
...
Bailun.DC.Web/Startup.cs
View file @
875bf45f
...
...
@@ -31,7 +31,7 @@ namespace Bailun.DC.Web
});
//עsession
services
.
AddSession
();
//
services.AddSession();
services
.
AddMvc
().
SetCompatibilityVersion
(
CompatibilityVersion
.
Version_2_1
);
...
...
@@ -65,7 +65,7 @@ namespace Bailun.DC.Web
//app.UseMvcWithDefaultRoute();
// session
app
.
UseSession
();
//
app.UseSession();
app
.
UseMvc
(
routes
=>
{
...
...
Bailun.DC.Web/wwwroot/js/common.js
View file @
875bf45f
...
...
@@ -313,6 +313,10 @@ function login() {
userid
=
result
.
userid
;
username
=
result
.
username
;
jobs
=
result
.
jobs
;
$
(
'#user-job'
).
html
(
jobs
);
$
(
'#user-name'
).
html
(
username
);
}
else
{
window
.
location
=
"http://www.bailuntec.com/Login/Index?guid=dbc0cffc7f4d11e8a4ca246e96754d42"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment