diff --git a/public/assets/wechat/class.html b/public/assets/wechat/class.html
index f81b4f5f0..88ef967e9 100644
--- a/public/assets/wechat/class.html
+++ b/public/assets/wechat/class.html
@@ -230,7 +230,7 @@
diff --git a/public/javascripts/wechat/controllers/class.js b/public/javascripts/wechat/controllers/class.js
index 1e9fbcb0e..ea394a1ff 100644
--- a/public/javascripts/wechat/controllers/class.js
+++ b/public/javascripts/wechat/controllers/class.js
@@ -6,6 +6,9 @@ app.controller('ClassController', ['$scope', 'config','$http', 'auth','$location
};
var vm = $scope;
+
+ vm.g_localhost = window.g_localhost;
+
var courseid = $routeParams.id;
var tag = $routeParams.tag;
diff --git a/public/javascripts/wechat/controllers/myresource.js b/public/javascripts/wechat/controllers/myresource.js
index d920b376a..f6bb1bb00 100644
--- a/public/javascripts/wechat/controllers/myresource.js
+++ b/public/javascripts/wechat/controllers/myresource.js
@@ -3,6 +3,9 @@ app.controller('MyResourceController', ['$scope', '$http', 'auth', 'config', '$l
var vm = $scope;
// vm.menus = ['课件', '作业', '测验'];
+
+ vm.g_localhost = window.g_localhost;
+
vm.menus = ['课件', '作业'];
vm.resources = [];