You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.6 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. if (!IS_VUE_SSR) {
  2. Vue.GV = true;
  3. try {
  4. LoadPage(GoHtmlSrc, GoHref);
  5. } catch (e) {
  6. console.log("LoadPage:" + e);
  7. }
  8. try {
  9. var govueId = GetGoVueId();
  10. // console.log("govueId",govueId);
  11. } catch (e) {
  12. console.log("GetGoVueId:" + e);
  13. }
  14. LoadGoParam();
  15. try {
  16. var goVueIgnore = new GoVueIgnore();
  17. goVueIgnore.ignore();
  18. // console.log(document.innerHTML);
  19. } catch (e) {
  20. console.log("goVueIgnore.ignore:" + e);
  21. }
  22. try {
  23. GoUseCall({
  24. id: govueId,
  25. path: GoPath,
  26. query: jQuery.deparam(GoQuery)
  27. });
  28. } catch (e) {
  29. console.log("GoUseCall:" + e);
  30. }
  31. try {
  32. RunInlineCode();
  33. } catch (e) {
  34. console.log("RunInlineCode:" + e);
  35. }
  36. try {
  37. goVueIgnore.restore();
  38. } catch (e) {
  39. console.log("goVueIgnore.restore:" + e);
  40. }
  41. try {
  42. GoVueRestoreRawTemplate();
  43. } catch (e) {
  44. console.log("GoVueRestoreRawTemplate:" + e);
  45. }
  46. try {
  47. GoReturn(document.innerHTML);
  48. } catch (e) {
  49. console.log("GoReturn:" + e)
  50. }
  51. } else {
  52. console.log("vue-ssr模式");
  53. try {
  54. LoadPage(GoHtmlSrc, GoHref);
  55. } catch (e) {
  56. console.log("LoadPage:" + e);
  57. }
  58. try {
  59. GoUseCall({
  60. path: GoPath,
  61. query: jQuery.deparam(GoQuery)
  62. });
  63. } catch (e) {
  64. console.log("GoUseCall:" + e);
  65. }
  66. try {
  67. RunInlineCode();
  68. } catch (e) {
  69. console.log("RunInlineCode:" + e);
  70. }
  71. }