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.5 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
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. } catch (e) {
  19. console.log("goVueIgnore.ignore:" + e);
  20. }
  21. try {
  22. GoUseCall({
  23. id: govueId,
  24. path: GoPath,
  25. query: jQuery.deparam(GoQuery)
  26. });
  27. } catch (e) {
  28. console.log("GoUseCall:" + e);
  29. }
  30. try {
  31. RunInlineCode();
  32. } catch (e) {
  33. console.log("RunInlineCode:" + e);
  34. }
  35. try {
  36. goVueIgnore.restore();
  37. } catch (e) {
  38. console.log("goVueIgnore.restore:" + e);
  39. }
  40. try {
  41. GoVueRestoreRawTemplate();
  42. } catch (e) {
  43. console.log("GoVueRestoreRawTemplate:" + e);
  44. }
  45. try {
  46. GoReturn(document.innerHTML);
  47. } catch (e) {
  48. console.log("GoReturn:" + e)
  49. }
  50. } else {
  51. console.log("vue-ssr模式");
  52. try {
  53. LoadPage(GoHtmlSrc, GoHref);
  54. } catch (e) {
  55. console.log("LoadPage:" + e);
  56. }
  57. try {
  58. GoUseCall({
  59. path: GoPath,
  60. query: jQuery.deparam(GoQuery)
  61. });
  62. } catch (e) {
  63. console.log("GoUseCall:" + e);
  64. }
  65. try {
  66. RunInlineCode();
  67. } catch (e) {
  68. console.log("RunInlineCode:" + e);
  69. }
  70. }