fix url
This commit is contained in:
parent
e7ac302cfe
commit
ca4272c561
|
@ -34,7 +34,7 @@ angular.module('warehost')
|
||||||
};
|
};
|
||||||
$scope.add = function(){
|
$scope.add = function(){
|
||||||
$scope.obj = {};
|
$scope.obj = {};
|
||||||
}
|
};
|
||||||
$scope.save = function(){
|
$scope.save = function(){
|
||||||
if($scope.obj.ID){
|
if($scope.obj.ID){
|
||||||
$http.put(config.api+'/web/website/'+$stateParams.websiteid+'/page/'+$scope.obj.ID,$scope.obj).then(submitresult);
|
$http.put(config.api+'/web/website/'+$stateParams.websiteid+'/page/'+$scope.obj.ID,$scope.obj).then(submitresult);
|
||||||
|
|
|
@ -15,7 +15,7 @@ angular.module('warehost')
|
||||||
$scope.obj = {};
|
$scope.obj = {};
|
||||||
}
|
}
|
||||||
function load(){
|
function load(){
|
||||||
$http.get(config.api+'/user/').then(function(res){
|
$http.get(config.api+'/user').then(function(res){
|
||||||
$scope.loginlist = res.data.data;
|
$scope.loginlist = res.data.data;
|
||||||
$http.get(config.api+'/web/website/'+$stateParams.websiteid+'/permission').then(function(res){
|
$http.get(config.api+'/web/website/'+$stateParams.websiteid+'/permission').then(function(res){
|
||||||
session.set(res);
|
session.set(res);
|
||||||
|
|
Reference in New Issue