Commit 0f43868352de0b1df2b33372679f733477b3442f

Authored by trainee
1 parent fa21d280
Exists in master

no message

src/app/dashboard/dashboard.component.ts
... ... @@ -11,16 +11,18 @@ import { CommonService } from '../services/common/common.service';
11 11 export class DashboardComponent implements OnInit {
12 12  
13 13 resultData: any;
  14 +
14 15  
15   - // DaysColor : [{
16   - // "DayRed": '0','1','2','3','4','5','6','7'
17   - // },
  16 + // DaysColor: any[] = [
18 17 // {
19   - // "DayYellow": '8','9','10','11','12','13','14','15',
  18 + // "DayRed": '0','1','2','3','4','5','6','7'
20 19 // },
21 20 // {
22   - // "DayGreen": "Main Server",
  21 + // "DayYellow": '8','9','10','11','12','13','14','15',
23 22 // }
  23 + // {
  24 + // "DayGreen": 16,
  25 + // // }
24 26 // ];
25 27  
26 28 constructor(
... ... @@ -36,6 +38,8 @@ export class DashboardComponent implements OnInit {
36 38 "params": ["vtiger_crmentity"]
37 39 }
38 40  
  41 +
  42 +
39 43 try {
40 44 let response = await this._apiService.post('dynamic', data);
41 45 if (response !== null) {
... ...
src/index.html
... ... @@ -3,7 +3,7 @@
3 3 <head>
4 4 <meta charset="utf-8">
5 5 <title>TestApi</title>
6   - <base href="/">
  6 + <base href="/home/smartzone-home/dist/test-api/">
7 7 <!-- แก้ base href จากเดิมเป็น ="/" -->
8 8  
9 9 <meta name="viewport" content="width=device-width, initial-scale=1">
... ...