|
@@ -227,14 +227,17 @@ var Dever =
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- ,Host : function(host, uri)
|
|
|
+ ,Host : function(host, uri, state)
|
|
|
{
|
|
|
var result = '';
|
|
|
|
|
|
uri = uri ? uri : '';
|
|
|
|
|
|
- //result = config.host.replace('www', host);
|
|
|
- result = config.host;
|
|
|
+ if (state) {
|
|
|
+ result = config.host.replace('www', host);
|
|
|
+ } else {
|
|
|
+ result = config.host;
|
|
|
+ }
|
|
|
result = result.replace('main', host);
|
|
|
|
|
|
if (config.proxy) {
|