From 3d1933b9630c78f5ac15ff6188ab1bd68ea1d227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E9=93=AD=20=E6=A2=81?= Date: Sat, 29 Apr 2017 10:29:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=94=80=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../App/Admin/views/layout/header/header.cshtml | 9 +++++---- .../App/Admin/views/layout/header/headerCtrl.js | 7 ++----- src/YoYo.Cms.Web/App/Admin/views/layout/layout.cshtml | 4 ++-- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/YoYo.Cms.Web/App/Admin/views/layout/header/header.cshtml b/src/YoYo.Cms.Web/App/Admin/views/layout/header/header.cshtml index f646b53..1ff8126 100644 --- a/src/YoYo.Cms.Web/App/Admin/views/layout/header/header.cshtml +++ b/src/YoYo.Cms.Web/App/Admin/views/layout/header/header.cshtml @@ -9,13 +9,14 @@
- dddd +
diff --git a/src/YoYo.Cms.Web/App/Admin/views/layout/header/headerCtrl.js b/src/YoYo.Cms.Web/App/Admin/views/layout/header/headerCtrl.js index 78aedf2..7b11eb6 100644 --- a/src/YoYo.Cms.Web/App/Admin/views/layout/header/headerCtrl.js +++ b/src/YoYo.Cms.Web/App/Admin/views/layout/header/headerCtrl.js @@ -5,19 +5,16 @@ function header($scope, appSession) { var vm = this; + vm.languages = abp.localization.languages; vm.currentLanguage = abp.localization.currentLanguage; - vm.changeLanguage = function (languageName) { console.log($scope.languages); - location.href = abp.appPath + 'AbpLocalization/ChangeCulture?cultureName=' + languageName + '&returnUrl=' + window.location.pathname + window.location.hash; }; + vm.getUserName = appSession.user.userName; - vm.con = function () { - console.log("d"); - } } diff --git a/src/YoYo.Cms.Web/App/Admin/views/layout/layout.cshtml b/src/YoYo.Cms.Web/App/Admin/views/layout/layout.cshtml index db3251d..0d50124 100644 --- a/src/YoYo.Cms.Web/App/Admin/views/layout/layout.cshtml +++ b/src/YoYo.Cms.Web/App/Admin/views/layout/layout.cshtml @@ -169,10 +169,10 @@